Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已将所有网址重定向到新域
RewriteEngine on RewriteRule (.*) http://abc.xyz.com/$1 [R=301,L]
但是我想排除一些子域,比如
http://dev.xyz.com etc
从被重定向到http://abc.xyz.com
http://abc.xyz.com
怎样才能做到这一点?
使用RewriteCond,在 Httpd Wiki 中有描述。
RewriteCond
http://wiki.apache.org/httpd/RewriteCond