I am currently using
RewriteRule ^(.*)wordpress(.*) $1wp-oct/live$2
to remap my test install at www/wp-oct/live/
to http://localhost/wordpress/
And it does the job but it also changes the url in the addressbar as http://localhost/wp-oct/live
Is there a way to keep the url in the addressbar http://localhost/wordpress/
You might like to use mod_proxy
for this instead of rewriting:
<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>
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.