WordPress behind reverse proxy and in subdir of domain issue with urls with no /
-
I am trying to debug a strange issue on a wordpress install that is running on a subdirectory on my domain.
If I type: https://example/blog/somearticle/ all is good but if I do without the slash: https://example/blog/somearticle it redirects me to https://example/somearticle/ which is obviously invalid.
Some important details:
– This wordpress install is behind an nginix reverse proxy: Nginix ->. Apache2->Wordpress
– Site Address (URL) and WordPress Address (URL) Are both set to: https://example.com/blog
– WordPress is installed in : /var/www/html/I am a software engineer but not in the wordpress arena so I don’t know about its codebase. What part of the WordPress code base handles doing redirects and appending slashes? I am trying to find the line of code so I can log it and see what’s causing the issue. I don’t believe Apache is causing the redirect and I don’t believe the .ht_access file is either.
- The topic ‘WordPress behind reverse proxy and in subdir of domain issue with urls with no /’ is closed to new replies.