中
我当前正在使用
RewriteRule ^(.*)wordpress(.*) $1wp-oct/live$2
将www/wp-oct/live/
的测试安装重新启动到http://localhost/wordpress/
它可以完成工作,但它也将地址栏中的URL更改为http://localhost/wp-oct/live
是否可以将URL保存在地址栏http://localhost/wordpress/
您可能想使用mod_proxy
而不是重写:
<IfModule mod_proxy.c>
ProxyRequests Off
<proxy *>
Order deny,allow
Allow from all
</proxy>
ProxyPass /wordpress http://localhost/wp-oct/live
ProxyPassReverse /wordpress http://localhost/wp-oct/live
</IfModule>