Created
August 10, 2016 14:23
-
-
Save fadlisaad/f6cbaaf2ef980a0a3536957ec4f5004c to your computer and use it in GitHub Desktop.
htaccess to nginx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-l | |
RewriteRule ^(.+)$ index.php?url=$1 [QSA,L] | |
location / { | |
if (!-e $request_filename){ | |
rewrite ^(.+)$ /index.php?url=$1 break; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment