HAIRWEBSHOP Posted May 30, 2016 Share Posted May 30, 2016 Hello, When I add flags to .htaccess, for some reason prestashop rewrites the file and discard the changes. Why is this, and how do I prevent this from happening? Thank you in advance! Link to comment Share on other sites More sharing options...
Prestachamps Posted May 30, 2016 Share Posted May 30, 2016 Hi you need to add your htaccess rules before this line: # ~~start~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again or add it after this line: # ~~end~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again else Prestashop will remove(regenerate default) the code between these two. If you have custom rewrite rules, then add it to the beginning of the file, and begin with this line: RewriteEngine on Regards, Leo Link to comment Share on other sites More sharing options...
HAIRWEBSHOP Posted May 30, 2016 Author Share Posted May 30, 2016 Seems logical, thank you! 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