Forum Moderators: phranque

Message Too Old, No Replies

Weird thing on mod rewrite and .htaccess

         

Salum

3:53 pm on Mar 7, 2009 (gmt 0)

10+ Year Member



So guys, how do you do?

I figured out something really weird on mod_rewrite. Apparently my apache wasnt reading .htaccess but now apparently it is but check this out:

If I type the URL: [localhost...] it returns me a 404 error.

If I type the URL [localhost...] it finds the page:

Well my apache's httpd.conf has been reconfigured thousand times. I think the error maybe in the .htaccess file.

Basically what I think this .htaccess does is if the URL is not a file or a directory, it returns me the index.php file in the main folder

there goes the .htaccess:

RewriteEngine On
Options +FollowSymLinks
IndexIgnore */*
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php [L]

any ideas?

jdMorgan

9:37 pm on Mar 8, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Disable MultiViews (mod_negotiation) and AcceptPathInfo (core) unless you are using them.

Jim