【发布时间】:2009-07-28 03:51:02
【问题描述】:
这是我的 .htaccess 现在
rewriteengine on
rewritecond %{HTTP_HOST} ^www.example.com$ [OR]
rewritecond %{HTTP_HOST} ^example.com$
rewriterule ^index.php/? "http\:\/\/example\.com\/" [R=301,L] #4a397bb852bc9
它将所有请求从根目录发送到 index.php 我需要做的是将所有请求从 www.example.com/site2/ 发送到 www.example.com/site2/index.php
我对正则表达式的理解总是缺少这些奇怪的规则和条件
谢谢,乔
【问题讨论】:
标签: apache .htaccess mod-rewrite