Subdirectory redirecting to index.html
-
Hello,
I created a directory named /dev/ and added a WP install there, so I can test updates. However, when I go to https://www.mydomain.com/dev/, I get redirected to: https://www.mydomain.com/wp-content/cache/all/index.html
I believe this bit of code inside of the plugin’s .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?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Subdirectory redirecting to index.html’ is closed to new replies.