Jump to content

[ SOLVED ]Problem with .htaccess file


Recommended Posts

When I turn ON the FRIENDLY URL from Back Office >> Preferences my products dont display on my website and gives an error saying the WEBSITE page doesn't exist anymore. I generated the .htaccess file but I am not sure what is the problem. Please help me how to solve it.

Link to comment
Share on other sites

First, some server does not support URL rewrite function, such as windows server. If your hosting is windows hosting, you will have to disable it.

2nd, if your store is not at root, but under a folder something like /shop/, make sure the generated .htaccess file has /shop/ included in the ReWrite rule for images. See below

RewriteRule ^([a-z0-9]+)\-([a-z0-9]+)(\-[_a-zA-Z0-9-]*)/([_a-zA-Z0-9-]*)\.jpg$ /shop/img/p/$1-$2$3.jpg [QSA,L,E]
RewriteRule ^([0-9]+)\-([0-9]+)/([_a-zA-Z0-9-]*)\.jpg$ /shop/img/p/$1-$2.jpg [QSA,L,E]
RewriteRule ^([0-9]+)(\-[_a-zA-Z0-9-]*)/([_a-zA-Z0-9-]*)\.jpg$ /shop/img/c/$1$2.jpg [QSA,L,E]

Link to comment
Share on other sites

First, some server does not support URL rewrite function, such as windows server. If your hosting is windows hosting, you will have to disable it.

2nd, if your store is not at root, but under a folder something like /shop/, make sure the generated .htaccess file has /shop/ included in the ReWrite rule for images. See below

RewriteRule ^([a-z0-9]+)\-([a-z0-9]+)(\-[_a-zA-Z0-9-]*)/([_a-zA-Z0-9-]*)\.jpg$ /shop/img/p/$1-$2$3.jpg [QSA,L,E]
RewriteRule ^([0-9]+)\-([0-9]+)/([_a-zA-Z0-9-]*)\.jpg$ /shop/img/p/$1-$2.jpg [QSA,L,E]
RewriteRule ^([0-9]+)(\-[_a-zA-Z0-9-]*)/([_a-zA-Z0-9-]*)\.jpg$ /shop/img/c/$1$2.jpg [QSA,L,E]



Thnaks....It's already solved. I dont know how but it's solved. I use HOSTGATOR hosting.
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...