我刚安装了一个WordPress站点,并在一个反向代理后面配置了该站点的URL-http://example.com/hello
问题
我可以访问admin dashboard页面,但由于链接变为http://example.com/wp-admin
而不是http://example.com/hello/wp-admin
. 我怎样才能摆脱这种奇怪的行为?可能有帮助的详细信息http://example.com/hello, 我甚至检查了数据库表wp_options
.http://example.com/hello/wp-admin..htaccess 也一样,但运气不好。
# 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