Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have mod_rewrite working perfectly on my local machine, but I'm getting a redirect loop on my shared server at Dreamhost.

I think I'm missing something really obvious. Any ideas why this would not work on a shared server?

I'm using Linux/Apache/PHP 5.2 with FastCGI

# 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] 
share|improve this question

For anyone having the same issue: turning off FastCGI solved the problem.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.