David Smart Posted May 27, 2010 Share Posted May 27, 2010 I'm planning on moving my items from having the default category as home to the category they are inthis would change the friendly url from:http://www.domain.com/X-product.htmltohttp://www.domain.com/category/X-product.htmlSo I put a Redirect 301 rule in my .htaccess as followsRedirect 301 /X-product.html http://www.domain.com/category/X-product.htmlBut that actually redirects as follows:http://www.domain.com/category/X-product.html?id_product=XAnyone knows why this happens, and how to stop it?Thanks! Link to comment Share on other sites More sharing options...
tomerg3 Posted May 27, 2010 Share Posted May 27, 2010 Check out http://www.prestashop.com/forums/viewthread/39736/ Link to comment Share on other sites More sharing options...
bartman Posted May 27, 2010 Share Posted May 27, 2010 Are you using the same domain name, ?if so you do not need to have the domain name in the redirectI have just upgraded from a seven year old oscommerce install and have included loads or redirects in my .htaccess fileexample below redirect 301 /-c-24.html /25-tritium-glow-rings redirect 301 /blue-year-glow-sticks-tritium-keyrings-glowring-p-36.html /tritium-glow-rings/36-nite-tritium-glow-ring-blue.html redirect 301 /glow-dark-plastic-whistles-p-143.html /glow-in-the-dark-whistles/143-12-glow-in-the-dark-plastic-whistles.html but we do have tomerg3's duplicat url redirect installed on the domainregardschris Link to comment Share on other sites More sharing options...
David Smart Posted May 28, 2010 Author Share Posted May 28, 2010 Hi guys,Looks like the paid module is the answer then!Bartman, not seen relative paths in the second part url redirects work before, they normally seem to cause a 500 error, maybe my apache settings, or perhaps tomerg3's module.thanksDaveEDIT: just to clarify, I'm not saying tomerg3's causes 500s! Link to comment Share on other sites More sharing options...
bartman Posted May 28, 2010 Share Posted May 28, 2010 we had the same 500 error when we used the full path, as you said it must be on the server setup Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now