Quantcast
Channel: Admins Goodies » php
Viewing all articles
Browse latest Browse all 11

Apache/PHP won’t allow for mod_rewrite in .htaccess files

$
0
0

Question

I have a simple .htaccess file to rewrite www.domain.com/foobar.php to www.domain.com/foobar

RewriteEngine On
RewriteRule foobar foobar.php [L]

It is giving me a 404 even though I ran phpinfo(); (which shows the mod_rewrite module), and checked httpd.conf (which uses mod_rewrite several times by default).

Any suggestions?

Asked by Matthew2468

Answer

The most possible reason for this is that you haven’t set ‘AllowOverride’ to at least ‘FileInfo’ at your configuration.

Answered by Simon Strasser

Viewing all articles
Browse latest Browse all 11

Trending Articles