Apache rewrite

来源:互联网 发布:股票入门基础知识软件 编辑:程序博客网 时间:2024/05/29 17:13

虚拟主机中加入

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


更多:

http://www.codesky.net/article/201205/172190.html

http://www.linuxidc.com/Linux/2012-05/60361p2.htm

0 0