• Resolved aleximi

    (@aleximi)


    We have a webshop under example.com where the WordPress system is installed on a different server and rendered under example.com/blog using a apache proxy_pass directive.

    Everything works well. But after installing w3-total-cache, all example.com/blog/* pages redirect to example.com/ – even wp-admin is no longer available.

    $ curl https://www.example.com/blog/ -I
    HTTP/2 301
    date: Thu, 05 Dec 2019 14:42:31 GMT
    server: Apache
    x-redirect-by: WordPress
    location: https://www.example.com/
    content-type: text/html; charset=UTF-8

    We even restored the .htaccess after module installation, but it did not help.

    Where is this redirect coming from?

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @aleximi

    I a sorry about the issue you are having and I am happy to help!
    Can you please share what caching method are you using for Page Cache? Have you tried switching to Disk: Basic and see if the issue persists?

    Thread Starter aleximi

    (@aleximi)

    Thanks Marko,
    I believe it happend directly after installing, but I am not sure because I did not install it on my own.
    The problem is a bit, that wp-admin also is not available and I moved the plugin folder away to get the site at least accessible again.

    Any other ideas to debug?

    Thread Starter aleximi

    (@aleximi)

    @vmarko after installation all worked, the problem started after enabling the page cache and chose Caching Methode Disk: Enhanced

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @aleximi

    Thank you for the information. Can you please switch do Disk: Basic, save all settings and purge the cache and see if the issue persists?

    Thread Starter aleximi

    (@aleximi)

    Just have to figure out how to do this without Backend Access.

    Can you share some technical background, why it may not work with “advanced”?

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @aleximi
    This can happen if you incompletely describe the case and changes the hostname completely.
    The wp_redirect may come from the PgCache_Plugin.php file due to the host mismatch. This can be fixed by adding your secondary host to mirrors in Performance>Page Cache>Aliases.
    Enable the Cache alias hostnames: and add the URL in Additional home URLs:
    I hope this helps!

    Thread Starter aleximi

    (@aleximi)

    Thank you so much. Commenting out the wp_redirect() and exit() lines helped to gain access to the backend and edit the options. This solved it.

    Maybe this can be made more robust … I guess if somebody activates it in such as setup and wp-admin is no longer accessible it can cause problems.

    Have a nice weekend.

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @aleximi

    You are most welcome!
    We would really appreciate it if you could take a minute and post a review here. This will help us to continue offering a top-notch product to users. Thank you for your help!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Using the Plugin behind a Reverse Proxy causes redirecting everybody to /’ is closed to new replies.