虚拟主机中加入
<VirtualHost *:80>
DocumentRoot "D:/shdev/php"ServerName local
<Directory "D:/shdev/php">
Options Indexes FollowSymLinks
AllowOverride all
RewriteEngine On
RewriteCond %{REQUEST_URI} ^/vip|card/
RewriteRule ^(vip|card)/(.*) http://tank_old.xxxx.com/$1/$2 [R=permanent,L]
Order Deny,Allow
Deny from none
Allow from all
Require local
</Directory>
</VirtualHost>
更多: