PrestaShop Forum

The best place in the world to ask questions about PrestaShop and get advice from our passionate community!

PrestaShop Forum

Jump to content

 

After changing site to Friendly URL [Changing .htaccess] My view product cannot be view

24 replies to this topic
#1
Spark

    PrestaShop Apprentice

  • Members
  • PipPip
  • 68 posts
Dear all!

Need help regarding changing to Friendly URLs.

Would like to know i need to change what to enable viewing for my viewed product block?
Appreciate if anyone can help? Thanks!

Regards,
Spark
Web: www.thattoyshop.com
www.thattoyshop.com - Visit our Disney Products and Urban Vinyl Toys [Designer Toys]!
Disney online store
Disney collection
Disney Toys
Urban Vinyl Toys
Looking for Ways to increase your sales through Internet Marketing?
Visit us now - www.EmpowerPerformanceMarketing.com, We can help you out!

#2
Stu583

    PrestaShop Apprentice

  • Members
  • PipPip
  • 204 posts
I had this problem aswell. You need to double check that the products "default category" is not home! Change it to any other catagory and it seems to work.

#3
Spark

    PrestaShop Apprentice

  • Members
  • PipPip
  • 68 posts
hi there,

Thanks for your reply on this. However you mean that items that place in home will not be display in viewed products?
Anyone here have any ideas to solve this problem? As I need to put some feature items at home. Thanks guys!
www.thattoyshop.com - Visit our Disney Products and Urban Vinyl Toys [Designer Toys]!
Disney online store
Disney collection
Disney Toys
Urban Vinyl Toys
Looking for Ways to increase your sales through Internet Marketing?
Visit us now - www.EmpowerPerformanceMarketing.com, We can help you out!

#4
Stu583

    PrestaShop Apprentice

  • Members
  • PipPip
  • 204 posts
No you can place them in "home" but the default catagory should NOT be home. You can put a product in as many catagories as you want but they all need a default.

#5
Spark

    PrestaShop Apprentice

  • Members
  • PipPip
  • 68 posts
Wow, Didn't know it's work this way. Thanks for your help on this!
Will have to redo my products. Really thanks for your help. :)
Learn new stuffs!
www.thattoyshop.com - Visit our Disney Products and Urban Vinyl Toys [Designer Toys]!
Disney online store
Disney collection
Disney Toys
Urban Vinyl Toys
Looking for Ways to increase your sales through Internet Marketing?
Visit us now - www.EmpowerPerformanceMarketing.com, We can help you out!

#6
Naturally Geek

    PrestaShop Newbie

  • Members
  • Pip
  • 16 posts
I have a question.
I have the same problem, I change the Default Category, but every time I try to go to any page I get the error (Managed Error) "Lo sentimos, pero la página que busca en estos momentos no se encuentra disponible. " Means:
"We are sorry, but the page you are looking for it is not available at this time".
Any page, of the front page, product page or category page even manufactures page.
It does not matter I does not display.


Any Idea of what could be the problem?
I asked and the provider supports re write and the file .htaccess is there already.

#7
Spark

    PrestaShop Apprentice

  • Members
  • PipPip
  • 68 posts
What do you mean any pages? You mean those recently view items at your block or any items?

This is strange..perhaps you should start everything over again? As in the .htaccess file. Do note that all item should not be put in 'Home' but any other place
www.thattoyshop.com - Visit our Disney Products and Urban Vinyl Toys [Designer Toys]!
Disney online store
Disney collection
Disney Toys
Urban Vinyl Toys
Looking for Ways to increase your sales through Internet Marketing?
Visit us now - www.EmpowerPerformanceMarketing.com, We can help you out!

#8
Naturally Geek

    PrestaShop Newbie

  • Members
  • Pip
  • 16 posts
Yes it is pretty rare. I install the Presta Shop, pretty easy.
Add spanish language. And then try to enable the friendly names.
Following the instructions and It was giving me an error like page not found.
Then, I read this post about the default category I made the changes and start working because it displays the prestaforum page, the error page.
I looks like a problem on the httaccess y I will upload it again.

#9
infogffph@yahoo.com

    PrestaShop Apprentice

  • Members
  • PipPip
  • 71 posts
After performing the procedure to activate Friendly URL almost everything is fine except for the links from "viewed Products"
If you click on an image generates a broken link missing the first part http://dominio.
Try http://www.gffph.com
Clicking on new products or featured products and all isok.But visited no.
It has already happened to someone.
Thank you

#10
Snol

    PrestaShop Apprentice

  • Members
  • PipPip
  • 125 posts
I have same problem error 404 everywhere when I turn on friendly URL. does anyone know exactly what text should go in the .htaccess file.

thanks
John
give me a man that tries and fails.... than a man that never tries at all
www.hivisvest.com
http://www.eliteindu...p?cat=1&sec=242

#11
infogffph@yahoo.com

    PrestaShop Apprentice

  • Members
  • PipPip
  • 71 posts

From 1239013302:

No you can place them in "home" but the default catagory should NOT be home. You can put a product in as many catagories as you want but they all need a default.


Thank you I had the same problem.Risolved.
Would be interesting to understand the reason

#12
infogffph@yahoo.com

    PrestaShop Apprentice

  • Members
  • PipPip
  • 71 posts
risolved see post" After changing site to Friendly URL [Changing .htaccess] My view product cannot be view "

#13
Patric Codron

    PrestaShop Superstar

  • PrestaTeam
  • 9152 posts
infogffph@yahoo.com : I merged your topic with this one. ;-)
Patric CodronCommunity Manager | Manager de CommunautéPrestaShop

Posted Image Merci de respecter les règles du forum PrestaShop.com :)
Posted Image Please comply with the PrestaShop.com forum rules :)

#14
Naturally Geek

    PrestaShop Newbie

  • Members
  • Pip
  • 16 posts
Yes let's make a resume:

Fist change htaccess.txt to .htaccess
Second enable on the Preferences the "Friendly URL".

And there is a restriction, you can not put the Default Category of any product on "Startseite", you have to choose other one.

Any other recomendation?

Casuse I still have the error:
It is the 404 error:
"We're sorry, but the Web address you entered is no longer available"

Ahh I have to add in my case I have problems with any link, not only products, categories, cms links.
It is like the my .htaccess does not have the correct content for the interpretation.
But I updated with the one on the package and still not work.

This is the content of my file:

# URL rewriting module activation
RewriteEngine on

# URL rewriting rules
RewriteRule ^([a-zA-Z0-9-]*)/([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ product.php?id_product=$2$4 [L,E]
RewriteRule ^([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ product.php?id_product=$1$3 [L,E]
RewriteRule ^([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ category.php?id_category=$1 [QSA,L,E]
RewriteRule ^content/([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ cms.php?id_cms=$1 [QSA,L,E]
RewriteRule ^([0-9]+)__([a-zA-Z0-9-]*)(.*)$ supplier.php?id_supplier=$1$3 [QSA,L,E]
RewriteRule ^([0-9]+)_([a-zA-Z0-9-]*)(.*)$ manufacturer.php?id_manufacturer=$1$3 [QSA,L,E]

# Catch 404 errors
ErrorDocument 404 /404.php

Can some one publish one that is working.
Or any one knows where this error can be logged or how?
I'm new to php I'm .net proggramer comming back from the dark side.
:)

#15
Snol

    PrestaShop Apprentice

  • Members
  • PipPip
  • 125 posts
I downloaded the new version of PS and it has an automatic .htacess generator.
I used this and then swithced friendly url back on on "local host "and it works. Sadley though not on my live site on 1and1. I will wait till new version is final release and just use that.
give me a man that tries and fails.... than a man that never tries at all
www.hivisvest.com
http://www.eliteindu...p?cat=1&sec=242

#16
Naturally Geek

    PrestaShop Newbie

  • Members
  • Pip
  • 16 posts
Yes but I cant just start again I have invested too much on products and categories to start over.
I need to see how to debug it.

#17
Snol

    PrestaShop Apprentice

  • Members
  • PipPip
  • 125 posts
Yes but when the new version is stable cant you just upgrade to it and it will retain all your previous info. Dont know whow long till it is ready though.
give me a man that tries and fails.... than a man that never tries at all
www.hivisvest.com
http://www.eliteindu...p?cat=1&sec=242

#18
Naturally Geek

    PrestaShop Newbie

  • Members
  • Pip
  • 16 posts
Ohh yes, That option is good to.
You know a way to see the record of that error?

Thanks

#19
Snol

    PrestaShop Apprentice

  • Members
  • PipPip
  • 125 posts
AddType x-mapp-php5 .php
#URL rewriting module activation
#RewriteEngine on

#URL rewriting rules
RewriteRule ^([a-zA-Z0-9-]*)/([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ product.php?id_product=$2$4 [L,E]
RewriteRule ^([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ product.php?id_product=$1$3 [L,E]
RewriteRule ^([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ category.php?id_category=$1 [QSA,L,E]
RewriteRule ^content/([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ cms.php?id_cms=$1 [QSA,L,E]
RewriteRule ^([0-9]+)__([a-zA-Z0-9-]*)(.*)$ supplier.php?id_supplier=$1$3 [QSA,L,E]
RewriteRule ^([0-9]+)_([a-zA-Z0-9-]*)(.*)$ manufacturer.php?id_manufacturer=$1$3 [QSA,L,E]

#Catch 404 errors
ErrorDocument 404 /404.php

Above is the content of my .htaccessfile on my LOCALHOST. this is the automatic version which is generated by Prestashop itself in the 1.2 alpha version.
are you using host 1and1 I hear that they may have problems.

John
give me a man that tries and fails.... than a man that never tries at all
www.hivisvest.com
http://www.eliteindu...p?cat=1&sec=242

#20
Naturally Geek

    PrestaShop Newbie

  • Members
  • Pip
  • 16 posts
Ty Snol. I kind of follow your advice.
I install the version 1.2 in a similar configuration. Generate the .htaccess File because the one you post is the same I have and I notice the generator, for my configuration add the "/" before the File Name on the rewrite rules, you can see it here:

# .htaccess automaticaly generated by PrestaShop e-commerce open-source solution
# http://www.prestashop.com - http://www.prestashop.com/forums

# URL rewriting module activation
RewriteEngine on

# URL rewriting rules
RewriteRule ^([0-9]+)\-([0-9]+)(\-[a-zA-Z0-9-]*)/([a-zA-Z0-9-]*)\.jpg$ /img/p/$1-$2$3.jpg [L,E]
RewriteRule ^([0-9]+)(\-[a-zA-Z0-9-]*)/([a-zA-Z0-9-]*)\.jpg$ /img/c/$1$2.jpg [L,E]
RewriteRule ^([a-zA-Z0-9-]*)/([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ /product.php?id_product=$2$4 [L,E]
RewriteRule ^([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ /product.php?id_product=$1$3 [L,E]
RewriteRule ^([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ /category.php?id_category=$1 [QSA,L,E]
RewriteRule ^content/([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ /cms.php?id_cms=$1 [QSA,L,E]
RewriteRule ^([0-9]+)__([a-zA-Z0-9-]*)(.*)$ /supplier.php?id_supplier=$1$3 [QSA,L,E]
RewriteRule ^([0-9]+)_([a-zA-Z0-9-]*)(.*)$ /manufacturer.php?id_manufacturer=$1$3 [QSA,L,E]

# Catch 404 errors
ErrorDocument 404 /404.php

And that was all, problem fixed.
And I think I know why even when I'm not able to explain it. I have on my hosting the ability to add multiple "domains" to a single account. I just add a folder inside and point the domain to it.
Any way when I make the installation the system tellsme:


There is 1 error
Path is not the same between your browser and you server :

- Server:
admintool/login.php

- Browser:
fraganciasm/admintool/login.php

But this do not affect me on anything excepting the Friendly paths.
I think is that because I have no problem on my local installation.

Any way If someone have the same problem try to put the "/" before the file names.
It may work.

Regards