1

I'm having a problem with my .htaccess.

on the phpinfo() page, I see that 'mod_rewrite' is in the 'loaded modules' under 'apache2handler', but my .htaccess does not work..

.htaccess RewriteEngine on RewriteBase / RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ /index.php 

Do I have an error with .htaccess?

1
  • "Does not work" - Just like my car, can you help me on this? ;-) Commented Apr 5, 2011 at 18:48

2 Answers 2

3

If you have an error with .htaccess Apache will generally give you a 500 response. To be honest, a "cheap" way that I use to make sure I have my configuration correct is to put garbage like "alksdjfalsdkjf" in .htaccess - error 500 means I enabled it, no error means I forgot something. ;)

You might want to check your AllowOverride settings.

Sign up to request clarification or add additional context in comments.

1 Comment

AllowOverride was the culprit in my case
2

Try adding

Options +FollowSymLinks

Above rewrite engine on and see if that works

1 Comment

I also encountered similar case, but I have "Options +FollowSymLinks" in the top line.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.