【发布时间】:2011-03-23 08:05:44
【问题描述】:
在我的.htaccess 文件中,我有以下内容
Options -Indexes
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)/(.*)$ index.php?lang=$1&id=$2 [L]
所以当我写http://mydomain.com/am/home 时,它将被重定向到http://mydomain.com?lang=am&id=home
但是我有一个cms 文件夹,我需要去
http://mydomain.com/cms/index.php 写的时候
http://mydomain.com/cms 但它不会发生。
我能做什么?
谢谢
【问题讨论】:
标签: php url .htaccess mod-rewrite url-rewriting