Welcome! Log In Create A New Profile

Advanced

Help with convert .htaccess to nginx :(

October 27, 2011 11:26PM
Hi guys,

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:

Options +FollowSymLinks +ExecCGI

AddDefaultCharset utf-8

<IfModule mod_authz_host.c>
<FilesMatch "\.(lock|conf)$">
Order deny,allow
Deny from all
</FilesMatch>

<FilesMatch "pre_.+\.php">
Order deny,allow
Deny from all
</FilesMatch>
</IfModule>


<IfModule mod_rewrite.c>
RewriteEngine On

# uncomment the following line, if you are having trouble
# getting no_script_name to work
#RewriteBase /

# we skip all files with .something
RewriteCond %{REQUEST_URI} \..+$
RewriteCond %{REQUEST_URI} !\.html$
RewriteRule .* - [L]

# we check if the .html version is here (caching)
RewriteRule ^$ index.html [QSA]
RewriteRule ^([^.]+)$ $1.html [QSA]
RewriteCond %{REQUEST_FILENAME} !-f

# no, so we redirect to our front web controller
RewriteRule ^(.*)$ index.php [QSA,L]
</IfModule>

I've tried to convert to:
rewrite ^ index.php last;

But it didn't work.

When I access http://myurl.com/installer.php nginx could display the page correctly, but when I clicked Next button, it said: "404 Not Found" (new URL: http://myurl.com/installer.php/step1)

Anyone has any solution for this?

Thank in advanced,
Giang
Subject Author Posted

Help with convert .htaccess to nginx :(

Giang October 27, 2011 11:26PM

Re: Help with convert .htaccess to nginx :(

Edho Arief October 27, 2011 11:36PM

Re: Help with convert .htaccess to nginx :(

Edho Arief October 27, 2011 11:38PM

Re: Help with convert .htaccess to nginx :(

Giang October 27, 2011 11:58PM

Re: Help with convert .htaccess to nginx :(

makononov March 21, 2012 03:54PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 260
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready