Hi, I've googled and searched the docs but have been unable to find an answer to my problem. I'm sure it's something simple I'm missing but my brain can't see it.
What I'm trying to do is the following:
I want the specific URL
to be rewritten to
but all other traffic to work as normal.
Here's a copy of the vhost.conf file I'm using.
<VirtualHost *:80>
ServerName # Rewrite
RewriteEngine On
RewriteCond %{SERVER_NAME} ^ RewriteRule ^/adirectory$ /some/other/directory [R]
ProxyPreserveHost On
ProxyPass / ProxyPassReverse / ErrorDocument 502 ErrorDocument 503 </VirtualHost>
The proxying works fine, but whatever I attempt I can't get the rewrite for that particular URL to work.
Any advice will be appreciated.
What I'm trying to do is the following:
I want the specific URL
to be rewritten to
but all other traffic to work as normal.
Here's a copy of the vhost.conf file I'm using.
<VirtualHost *:80>
ServerName # Rewrite
RewriteEngine On
RewriteCond %{SERVER_NAME} ^ RewriteRule ^/adirectory$ /some/other/directory [R]
ProxyPreserveHost On
ProxyPass / ProxyPassReverse / ErrorDocument 502 ErrorDocument 503 </VirtualHost>
The proxying works fine, but whatever I attempt I can't get the rewrite for that particular URL to work.
Any advice will be appreciated.