I freshly installed a WordPress site and I configured it behind a reverse proxy with site URL - http://example.com/hello
Problem
I can reach the admin dashboard page, however I cannot go further as the link becomes http://example.com/wp-admin
instead of http://example.com/hello/wp-admin
. How could I get rid of this weird behaviour?
Details that might help...
- I am quite sure that the WordPress Address (URL) and Site Address (URL) are configured as
http://example.com/hello
, I even checked the database tablewp_options
. - When it arrives the admin dashboard page with correct CSS, the browser will show the correct link for half seconds and suddenly change to the wrong one. I even checked the network log in my Chrome and Firefox, the requested URL is
http://example.com/hello/wp-admin
. I have tried to configure the
.htaccess
as well, but no luck.# BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase /hello RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /hello/index.php [L] </IfModule> # END WordPress