Help with convert .htaccess to nginx

haonhien nginx-forum at
Thu Apr 12 03:19:37 UTC 2012

It's me again :( I was trying to install siwapp on my webserver but I
couldn't make it work with nginx, here is the .htaccess file content:

    # If the file is NOT the index.php file
    <IfModule mod_rewrite.c>

     RewriteEngine on
     RewriteCond %{REQUEST_FILENAME} !index.php
     # Hide all PHP files so none can be accessed by HTTP
     RewriteRule (.*)\.php$ index.php/$1

     RewriteCond $1

     RewriteRule ^(.*)$ index.php/$1 [QSA,L]


When I access
,nginx could display the page correctly, it said: "404 Not Found" (new

Posted at Nginx Forum:,225195,225195#msg-225195

More information about the nginx mailing list