Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
add comment

1 Answer 1

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

share|improve this answer
add comment

Your Answer

 
discard

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.