Welcome! Log In Create A New Profile

Advanced

Impossible to translate this Apache htaccess to Nginx by myself :(

Posted by javipas 
Impossible to translate this Apache htaccess to Nginx by myself :(
May 07, 2011 05:28AM
I've checked previous messages about this subject and some official info and more official info and I've tried to make changes on my own, but without luck :(

I'm working with a Nginx web server and I have moved a site from an Apache server that had the following .htaccess file:

**********************

Options +FollowSymLinks +ExecCGI

<IfModule mod_rewrite.c>
RewriteEngine On

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

# 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>

************************

Could somebody help me and translate this into my Nginx virtualhost file, on /etc/nginx/sites-available/fbstore.conf?
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 229
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready