• Hi.

    After installing the plugin, my site loads much faster. Yay! But, the changes to the .htaccess prevent me from logging into WordPress. It just reloads the login page.

    Below is what gets added to .htaccess. Removing this lets me login again.

    Any help you can provide is appreciated!

    # BEGIN WP Cloudflare Super Page Cache
    # The directives (lines) between "BEGIN WP Cloudflare Super Page Cache" and "END WP Cloudflare Super Page Cache" are
    # dynamically generated, and should only be modified via WordPress filters.
    # Any changes to the directives between these markers will be overwritten.
    <IfModule mod_headers.c>
    Header unset Set-Cookie "expr=resp('x-wp-cf-super-cache-active') == '1'"
    Header always unset Set-Cookie "expr=resp('x-wp-cf-super-cache-active') == '1'"
    </IfModule>
    <IfModule mod_expires.c>
    ExpiresActive on
    ExpiresByType application/xml "access plus 0 seconds"
    ExpiresByType text/xsl "access plus 0 seconds"
    </IfModule>
    <FilesMatch "\.(xml|xsl)$">
    <IfModule mod_headers.c>
    Header set Cache-Control "no-cache, no-store, must-revalidate, max-age=0"
    </IfModule>
    </FilesMatch>
    <FilesMatch "robots\.txt">
    <IfModule mod_headers.c>
    Header set Cache-Control "no-cache, no-store, must-revalidate, max-age=0"
    </IfModule>
    </FilesMatch>
    <FilesMatch "\.(css|js|pdf)$">
    <IfModule mod_headers.c>
    Header set Cache-Control "public, must-revalidate, proxy-revalidate, immutable, max-age=2592000, stale-while-revalidate=86400, stale-if-error=604800"
    </IfModule>
    </FilesMatch>
    <FilesMatch "\.(jpg|jpeg|png|gif|ico|eot|swf|svg|webp|avif|ttf|otf|woff|woff2|ogg|mp4|mpeg|avi|mkv|webm|mp3)$">
    <IfModule mod_headers.c>
    Header set Cache-Control "public, must-revalidate, proxy-revalidate, immutable, max-age=31536000, stale-while-revalidate=86400, stale-if-error=604800"
    </IfModule>
    </FilesMatch>
    <IfModule mod_rewrite.c>
    RewriteCond %{REQUEST_URI} ^(.*)?/wp-content/wp-cloudflare-super-page-cache/www.phocusstudio.com/debug.log(.*)$
    RewriteRule ^(.*)$ - [F]
    </IfModule>
    <FilesMatch "wp-cron.php">
    <IfModule mod_headers.c>
    Header set Cache-Control "no-cache, no-store, must-revalidate, max-age=0"
    </IfModule>
    </FilesMatch>
    # END WP Cloudflare Super Page Cache
Viewing 2 replies - 1 through 2 (of 2 total)
  • Thank you have a nice day!!!!!!

    Plugin Contributor iSaumya

    (@isaumya)

    Hi @johnreel,
    What you are saying is simply impossible. The htaccess added by this plugin does nothing to hamper your WP Admin login. Moreover it is been tested on many apache and lightspeed servers which uses htaccess and we didn’t face any issues.

    I really don’t see anything in that htaccess which can cause what you are saying. I would suggest you to contact your host if they can give more info on this or try removing one block of htaccess from the whole block and see exact which htaccess line is causing the issue.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Can’t login to WP’ is closed to new replies.