poropro 发表于 2017-6-19 11:22:34

htaccess求转换nginx

# begin VFM rules
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_URI}::$1 ^(.*?/)(.*)::\2$
RewriteRule ^(.*)$ -
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule download/(.*)/h/(.*)/sh/(.*) %{ENV:BASE}/vfm-admin/vfm-downloader.php?q=$1&h=$2&sh=$3
RewriteRule download/(.*)/h/(.*) %{ENV:BASE}/vfm-admin/vfm-downloader.php?q=$1&h=$2
RewriteRule download/dl/(.*)/pw/(.*) %{ENV:BASE}/vfm-admin/vfm-downloader.php?dl=$1&pw=$2
RewriteRule download/dl/(.*) %{ENV:BASE}/vfm-admin/vfm-downloader.php?dl=$1
RewriteRule download/zip/(.*)/n/(.*) %{ENV:BASE}/vfm-admin/vfm-downloader.php?zip=$1&n=$2

</IfModule>
# end VFM rules

东方星雨 发表于 2017-6-19 11:40:22

http://tool.lu/htaccess2nginx/
页: [1]
查看完整版本: htaccess求转换nginx