开发者

Rewrite Rules - httpd.conf

开发者 https://www.devze.com 2023-03-20 09:33 出处:网络
I have the following entry in the httpd.conf <Virtual开发者_C百科Host *:80> ServerName www.mydomain.com

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

精彩评论

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