我的.htaccess看起来是这样的:htaccess的重定向问题
RewriteEngine on
RewriteCond %{REQUEST_URI} !(\.gif)|(\.jpg)|(\.png)|(\.css)|(\.js)|(\.php)|(\.swf)|(\.xpi)|(\.ico)|(\.src)$
RewriteCond %{REQUEST_URI} ^(.*)$
#RewriteCond %{REQUEST_FILENAME} ! -f
RewriteRule (.*)$ view.php?picid=$1 [L]
问题是,当我访问www.example.com
,它送我去view.php
。我的根目录中有一个index.php
文件。我如何让.htaccess忽略索引文件?
works great , 谢谢。 – mrpatg 2009-08-08 06:23:45