RewriteRule (redirecting) trouble

Discussion in 'Apache' started by integrable, Dec 13, 2009.

  1. #1
    hi,

    i have next .htaccess file:

    RewriteEngine On
    RewriteRule ^.*$ index.php [NC,L]

    and it works fine on localhost, server redirects all urls to index.php

    BUT, it's does not work on another server, it gives 404 error
    for all urls except this index.php, and does not make redirect to this adress from other urls.

    What can be the reason for such a behaviour?

    Thanks.
     
    integrable, Dec 13, 2009 IP