strange behavor of apache.

Discussion in 'Apache' started by akkronin, Jan 30, 2006.

  1. #1
    I need using mod_rewrite for user frindly url.
    Usally I use that:
    <IfModule mod_rewrite.c>
    RewriteEngine on
    Options +FollowSymlinks
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^([^.]*)$ _handler.php [L,QSA]
    </IfModule>

    But it not working!

    on all request like www.server_name.com/main
    i got 404.

    I though rewrite mod is not working.
    but no it works!

    RewriteEngine on
    RewriteRule ^old.htm hew.htm [L]

    -working.

    And I found that: if I use url www.server_name.com/new
    i got content from new.htm!
    Obviosly Apache samehow redirect any request which not directory with index.php, to htm files request.
    How I can switch off that behavior?
    Any thinks?
     
    akkronin, Jan 30, 2006 IP