请帮助我将 .htaccess 规则转换为 Nginx
Options +FollowSymLinks
RewriteEngine on
RewriteRule ^show\.php/(.*)$ show2.php?img=$1 [L]
RewriteRule ^out\.php/([a-z]{1})(.*)$ out2.php?$1=$2&%{QUERY_STRING} [L]
RewriteRule ^view\.php/(.*)$ view2.php?img=$1 [L]
谢谢 :)
答案1
在阅读了近 1 小时的文档后,我自己找到了它:)
重写 ^/view.php/(.*)$ /view.php?img=$1 最后;