我的mod_rewrite在我的本地机器上运行得很好,但是我在Dreamhost的共享服务器上得到了一个重定向循环。
我想我错过了一些很明显的东西。您知道为什么这在共享服务器上不能工作吗?
我在FastCGI中使用Linux/Apache/php5.2
# Turn on URL rewriting
RewriteEngine On
RewriteBase /
# Protect application files from being viewed
RewriteRule ^(application) - [F,L]
# Allow any other files or directories that exist to be displayed directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# Rewrite all other URLs to index.php/
RewriteRule .* index.php/$0 [PT,L] 发布于 2010-11-03 00:02:06
对于任何有同样问题的人来说:关闭FastCGI解决了问题。
https://serverfault.com/questions/197451
复制相似问题