bcsteeve Posted July 17, 2015 Share Posted July 17, 2015 I have a problem with my server caching stuff on their end. They told me how to stop it, and it involves adding a line to .htaccess. But there are dozens of .htaccess... do I add it to all of them? Is there a simple way to do that? What's the best way please. Link to comment Share on other sites More sharing options...
Kerm Posted July 17, 2015 Share Posted July 17, 2015 (edited) You need add that you want only in one file, that lies in site root folder. And add your code before this line: # ~~start~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again Edited July 17, 2015 by Kerm (see edit history) Link to comment Share on other sites More sharing options...
bcsteeve Posted July 17, 2015 Author Share Posted July 17, 2015 Ahh, OK thanks. So are all the sub-folder .htaccess files inheriting the properties of the ones in the site root? Also when you say "site root", does it have to be at / or is it ok to put it at /store so it isn't affecting (for example) my /blog, etc? (in case it isn't obvious, prestashop is installed in /store). Ie. Site root, or prestashop root? Link to comment Share on other sites More sharing options...
Kerm Posted July 17, 2015 Share Posted July 17, 2015 Properties inherited for all folders and subfolders, in folders same file more need it for security. Link to comment Share on other sites More sharing options...
Kerm Posted July 17, 2015 Share Posted July 17, 2015 The site root is in the place where you uploaded all the prestashop files. Link to comment Share on other sites More sharing options...
bcsteeve Posted July 17, 2015 Author Share Posted July 17, 2015 thanks. Link to comment Share on other sites More sharing options...
bcsteeve Posted July 17, 2015 Author Share Posted July 17, 2015 Whoops... that just resulted in an error 500 This is what I added to the top of the file: Header set Cache-Control "max-age=0, private, no-cache, no-store, must-revalidate" I copy/pasted it from what the host told me to do. Maybe it needs a semicolor or something? Link to comment Share on other sites More sharing options...
bcsteeve Posted July 17, 2015 Author Share Posted July 17, 2015 nevermind.... nano issue. It didn't paste correctly. Link to comment Share on other sites More sharing options...
vekia Posted July 18, 2015 Share Posted July 18, 2015 dh42 released nice tiny module:https://www.prestashop.com/forums/topic/454469-free-prestashop-htaccess-editor/ 1 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