我必须使URL不区分大小写。这意味着我必须处理 http://www.test.com/About.php 和 http://www.test.com/about.php。 我尝试了下面的代码,但它不起作用。它显示索引页面,即显示索引页面的内容。
#Options +FollowSymlinks
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA,NC]
index.php
- 如果请求文件不存在的话。那么你的真正问题是什么呢? - hakre