Jump to content

search engine friendly url related problem


Recommended Posts



Hello,

I am using prestashp1.1.From admin i have enabled the friendly url option and then have renamed the htaccess.txt file to .htaccess .Since then i am facing error 500 and cannt see any page anymore.

Please help.

Link to comment
Share on other sites

  • 2 weeks later...

Try with this .htaccess file:

# URL rewriting module activation
RewriteEngine on
RewriteBase / 

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

# Catch 404 errors
ErrorDocument 404 /404.php

Link to comment
Share on other sites

why i cant upload show pictures if i dont add php_value memory_limit 32M to the end of the .htaccess file (otherwise i get memory error).
and every time i generate the file from the back office that php_value memory_limit 32M gets deleted.

Is there anything that the hosting provider should do?

Link to comment
Share on other sites

  • 1 month later...
Try with this .htaccess file:

# URL rewriting module activation
RewriteEngine on
RewriteBase / 

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

# Catch 404 errors
ErrorDocument 404 /404.php



worked for me!!! thanks!
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...