我最近刚从 linux 主机迁移到带有 windows 2003 的专用服务器,我只有一个使用 Mod_rewrite 的站点,但是使用 ISAPI _Rewrite 3 免费,规则是全局的。
如何编写仅影响“mysite.com”而不影响其他条件的条件?
这是我的 httpd.conf 文件
# Helicon ISAPI_Rewrite configuration file
# Version 3.1.0.66
RewriteEngine On
RewriteBase /
RewriteRule ^([A-Za-z0-9-]+)/?$ index.php?page=$1
RewriteRule ^([A-Za-z0-9-]+)/([A-Za-z0-9-]+)/?$ index.php?page=$1&id=$2 [L]
我不想只为这个网站购买 ISAPI_Rewrite
谢谢