nginx pretty url的smf未知指令

时间:2018-02-28 06:08:54

标签: .htaccess nginx mod-rewrite url-rewriting

我有一个nginx的问题,看看用户是否可以帮助我,我无法激活我的论坛smf中的漂亮网址

重新启动nginx:nginx:[emerg] unknown指令" action = $ 1"在/etc/nginx/sites-enabled/myweb.com:48 nginx:配置文件/etc/nginx/nginx.conf测试失败

rewrite ^/profile/([^/]+)/?$ /./index.php?pretty;action=profile;user=$1 last;
rewrite ^/(activate|admin|announce|attachapprove|buddy|calendar|clock|collapse)/?$ /./index.php?pretty;action=$1 last;
rewrite ^/(coppa|credits|deletemsg|display|dlattach|editpoll|editpoll2|emailuser)/?$ /./index.php?pretty;action=$1 last;
rewrite ^/(findmember|groups|help|helpadmin|im|jseditor|jsmodify|jsoption)/?$ /./index.php?pretty;action=$1 last;
rewrite ^/(lock|lockvoting|login|login2|logout|markasread|mergetopics|mlist)/?$ /./index.php?pretty;action=$1 last;
rewrite ^/(moderate|modifycat|modifykarma|modifyrespetos|movetopic|movetopic2|notify|notifyboard)/?$ /./index.php?pretty;action=$1 last;
rewrite ^/(openidreturn|pm|post|post2|printpage|profile|quotefast|quickmod)/?$ /./index.php?pretty;action=$1 last;
rewrite ^/(quickmod2|recent|register|register2|reminder|removepoll|removetopic2|reporttm)/?$ /./index.php?pretty;action=$1 last;
rewrite ^/(requestmembers|restoretopic|search|search2|sendtopic|smstats|suggest|spellcheck)/?$ /./index.php?pretty;action=$1 last;
rewrite ^/(splittopics|stats|sticky|theme|topicsolved|trackip|about:mozilla|about:unknown)/?$ /./index.php?pretty;action=$1 last;
rewrite ^/(unread|unreadreplies|verificationcode|viewprofile|vote|viewquery|viewsmfile|who)/?$ /./index.php?pretty;action=$1 last;
rewrite ^/(.xml|shop|shop|xmlhttp)/?$ /./index.php?pretty;action=$1 last;
rewrite ^/([-_!~*'()$a-zA-Z0-9]+)/?$ /./index.php?pretty;board=$1.0 last;
rewrite ^/([-_!~*'()$a-zA-Z0-9]+)/([0-9]*)/?$ /./index.php?pretty;board=$1.$2 last;
rewrite ^/([-_!~*'()$a-zA-Z0-9]+)/([-_!~*'()$a-zA-Z0-9]+)/?$ /./index.php?pretty;board=$1;topic=$2.0 last;
rewrite ^/([-_!~*'()$a-zA-Z0-9]+)/([-_!~*'()$a-zA-Z0-9]+)/([0-9]*|msg[0-9]*|new)/?$ /./index.php?pretty;board=$1;topic=$2.$3 last;

0 个答案:

没有答案