开发者

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>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜