简体   繁体   中英

htaccess mistake & How to force the client's browser to clear the cache?

I made a terrible mistake, And set long expire date to my files (including index.php).

   ExpiresDefault                          "access plus 3 week"

Now a lot of my users get the old file and because it's the index file of the directory I can't use ?v=1 trick.

I don't want to rename the directory because of SEO reasons.

Is there is any other option?

You can use .htaccess to move it to another folder. With the updated index.php file.

In three weeks, remove redirect to sub folder and update the original index.php.Try a 302 redirect. Redirect 302 / /tempfolder

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM