lindared73 Posted June 9, 2014 Share Posted June 9, 2014 Hello, I want to redirect the 404 pages to the home. for example this link http://www.gangasagranel.com/pagina-no-encuentra?id=156&rewrite=facial-care but i don´t know how. in my .htaccess i have 301 redirect but it doesnt work Can anyone help me? My version of prestashop is 1.5.2 htaccess.txt Link to comment Share on other sites More sharing options...
prime1974 Posted June 15, 2014 Share Posted June 15, 2014 Hello, I want to redirect the 404 pages to the home. for example this link http://www.gangasagranel.com/pagina-no-encuentra?id=156&rewrite=facial-care but i don´t know how. in my .htaccess i have 301 redirect but it doesnt work Can anyone help me? My version of prestashop is 1.5.2 Hi! Your problem may be that you have added the redirects before the rewrite engine is activated. I have edited your file. I just shifted your code to the bottom of everything. Generally you should not add code within the automatic generated by prestashop, because once prestashop regenerates the .htaccess file for which reason ever, you changes will be lost. Hope that helps htaccess.txt Link to comment Share on other sites More sharing options...
lindared73 Posted June 16, 2014 Author Share Posted June 16, 2014 Thanks Prime1974 but it doesnt work still. The problem is with the 404 pages becasuse the rest of redirections works perfectly. Link to comment Share on other sites More sharing options...
vekia Posted June 16, 2014 Share Posted June 16, 2014 you can add own code to htaccess file, just add code outside the: # ~~start~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again # ~~end~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again 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