Rewrite Rules - httpd.conf
I have the following entry in the httpd.conf
<Virtual开发者_C百科Host *:80>
ServerName www.mydomain.com
RewriteEngine on
RewriteRule ^/(.*) http://www.anotherdomain.uk.com/ [L,R=302]
</VirtualHost>
I would look to arrange this such that when entering www.mydomain.com/admin
I will not get redirected.
<VirtualHost *:80>
ServerName www.mydomain.com
RewriteEngine on
RewriteCond %{REQUEST_URI} !^/admin
RewriteRule ^/(.*) http://www.anotherdomain.uk.com/ [L,R=302]
</VirtualHost>
精彩评论