Subdirectory redirecting to index.html




Wordpress LScache Plugin: Subdirectory redirecting to index.html

Last Updated on: Wed, 15 Apr 2026 00:00:02
Hello, I created a directory named /dev/ and added a WP install there, so I can test updates. However, when I go to http://www.mydomain.com/dev/, I get redirected to: http://www.mydomain.com/wp-content/cache/all/index.html I believe this bit of code inside of the plugins .htaccess is the culprit: RewriteCond % DOCUMENT_ROOT /wp-content/cache/all/$1/index.html -f [or] RewriteCond /home/goodgrie/public_html/wp-content/cache/all/$1/index.html -f RewriteCond % REQUEST_URI !^/[0-9]+ ..+ .cpaneldcv$ RewriteCond % REQUEST_URI !^/[A-F0-9] 32 .txt(?: Comodo DCV)?$ RewriteCond % REQUEST_URI !^/ .well-known/acme-challenge/[0-9a-zA-Z_-]+$ RewriteRule ^(. ) /wp-content/cache/all/$1/index.html [L] Is there a way to add/adjust this to exclude the /dev/ directory from the redirect? Hi @amandathewebdev Those rewrite rules do not look like they belong to our plugin, so we are not sure about where that came from. That said, looking at those rules, I think it may be fixed if you add a dev/ before all occurrences of wp-content. That said, these rules do not belong to our plugin, so I cannot say for sure if that will fix or break the issue. If you used a different caching plugin before, that may have been left over from the removal. In that case, you can comment these lines out with a # prefixed to each line. Cheers, Kevin Hi, @amandathewebdev We havent heard back from you, so were going to mark this issue as Resolved. If you are still having a problem and need our assistance, please leave a reply and well re-open the case. Thanks!



LiteCache Rush: Speed comes from using less, not from doing it faster



Reference