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]
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 85
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