Jump to content

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


Recommended 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

Link to comment
Share on other sites

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!

Link to comment
Share on other sites

  • 3 weeks later...

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.
:)

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

well done Beginner, you gave me clue to mine and it worked too.

My site is in www.mysite/prestashop

so rewrite rules must contain the folder in the prefix as sample 1 line below

RewriteRule ^([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ /prestashop/category.php?id_category=$1 [QSA,L,E]
you will se where I had to add the subfolder name /prestashop/ to the line.

all working fine now, we both got there in the end, whooo hoo!
thx
JOhn

Link to comment
Share on other sites

  • 3 weeks later...
  • 3 weeks later...
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!


you dont have to. just try to run this query over your DB I already used for fix this problem:
update prestashop_product as p set id_category_default = (select id_category from prestashop_category_product as cp where cp.id_product = p.id_product LIMIT 1)



where 'prestashop' is your current DB prefix of course

Link to comment
Share on other sites

×
×
  • Create New...