apache - please help 'translate' .htaccess to nginx
PHP中文网
PHP中文网 2017-05-16 17:02:16
0
1
449

Please help me take a look, I only know that the second one means, if it is not a file or folder, redirect to
For example, visit http://www.abc.com/def
http://www.abc.com/index.php?_url=/def

nginx officially has this document...but I can't understand it...
http://nginx.org/en/docs/http/converting_rewrite_rules.html


RewriteEngine on
RewriteRule ^$ public/ [L]
RewriteRule (.*) public/$1 [L]


RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?_url=/$1 [QSA,L]

PHP中文网
PHP中文网

认证高级PHP讲师

reply all(1)
Ty80

here

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template