Welcome! Log In Create A New Profile

Advanced

htaccess to nginx

Posted by nepo 
htaccess to nginx
September 10, 2014 06:52AM
help plz convert from htaccess to nginx


AddDefaultCharset UTF-8
Options +FollowSymLinks +ExecCGI
ErrorDocument 404 /index.php
<IfModule mod_rewrite.c>
RewriteEngine On
#Hides backend and its static content from all domains except 1
RewriteCond %{REQUEST_URI} !^/index.php$ [NC]
RewriteCond %{REQUEST_FILENAME} -f
RewriteCond %{HTTP_HOST} !^.*$
RewriteRule ^(.*)$ - [R=404,L]
#No script name
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php [QSA,L]
</IfModule>
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 134
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready