Support » Plugin: LiteSpeed Cache » Subdirectory redirecting to index.html

  • Resolved amandathewebdev

    (@amandathewebdev)


    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 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)
  • Plugin Author LiteSpeed Technologies

    (@litespeedtech)

    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

    Plugin Support LiteSpeed Lisa

    (@lclarke)

    Hi, @amandathewebdev

    We haven’t heard back from you, so we’re going to mark this issue as “Resolved.” If you are still having a problem and need our assistance, please leave a reply and we’ll re-open the case.

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Subdirectory redirecting to index.html’ is closed to new replies.