aleximi
Forum Replies Created
-
Forum: Plugins
In reply to: [AMP] rel=amphtml URL with proxyactually I have some idea in my mind how we could fix that which I will post there.
Forum: Plugins
In reply to: [AMP] rel=amphtml URL with proxyI just mean, that I does not seem right to use the $_SERVER[“REQUEST_URI”] to determine the current URL.
Shouldn’t that be done similar to this?
home_url( $wp->request )
https://wordpress.stackexchange.com/a/274572/98416
I think then it would work also with special cases, like proxies.
Other links work on the blog behind of the proxy. I assume the AMP URL can be generated in a similar way?
Forum: Plugins
In reply to: [AMP] rel=amphtml URL with proxyI am working with marketing4kuebler. Let me jump in..
Why don’t you use the home URL?
The revere proxy is set up in that way, that the request von example.blog/blog ends up on wordpress.example.com/ so that is the request URI the AMP extension is seeing.
Other wordpress subpages work, because – I guess – they use home URL and so on.Maybe a switch could be added to use standard behavior in case the $_SERVER[‘REQUEST_URI’] is needed ? (but of course it would be nice if this can be fixed without a config switch)
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.
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”?
@vmarko after installation all worked, the problem started after enabling the page cache and chose Caching Methode Disk: Enhanced
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?