davidcalabuig Posted February 5, 2015 Share Posted February 5, 2015 (edited) Hi Prestaman's, I have several redirects in the .htaccess file and when to a user Creates a product, the new .htaccess is generated by default and delete all my redirects. Is there any way to not generate the .htaccess whenever a product is created? Thanks! Edited February 5, 2015 by calabuig (see edit history) Link to comment Share on other sites More sharing options...
PascalVG Posted February 5, 2015 Share Posted February 5, 2015 Hi Calabuig, In .htaccess, there is a part that PrestaShop modifies, but also a part that stays intact: Everything between: # ~~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 Will be removed and then re-generated, so if you want to keep your own redirects or other code, place that code OUTside this block (say, all the way at the end of the file or so.) Hope this helps, pascal. Link to comment Share on other sites More sharing options...
davidcalabuig Posted February 5, 2015 Author Share Posted February 5, 2015 Upppsss I'm noob xD 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