求助Nginx转apache伪静态?

程序安装到Nginx根目录:(文章页面规则)
rewrite ^/([A-Za-z0-9])([A-Za-z0-9])([A-Za-z0-9])([A-Za-z0-9])([A-Za-z0-9])([A-Za-z0-9])([A-Za-z0-9])([A-Za-z0-9]).html$ /index.php?title=$1$2$3$4$5$6$7$8 last;
(目录页面规则)
rewrite ^/([A-Za-z0-9])([A-Za-z0-9])([A-Za-z0-9])([A-Za-z0-9])([A-Za-z0-9])([A-Za-z0-9])([A-Za-z0-9])([A-Za-z0-9])/$ /index.php?title=$1$2$3$4$5$6$7$8 last;

程序安装到Nginx二级目录:
rewrite ^/news/([A-Za-z0-9])([A-Za-z0-9])([A-Za-z0-9])([A-Za-z0-9])([A-Za-z0-9])([A-Za-z0-9])([A-Za-z0-9])([A-Za-z0-9]).html$ /news/index.php?title=$1$2$3$4$5$6$7$8 last;

在线生成的规则放进去不能用:
RewriteRule '^/([A-Za-z0-9])([A-Za-z0-9])([A-Za-z0-9])([A-Za-z0-9])([A-Za-z0-9])([A-Za-z0-9])([A-Za-z0-9])([A-Za-z0-9]).html$$' /index.php?title=$1$2$3$4$5$6$7$8 [L]

RewriteRule '^/([A-Za-z0-9])([A-Za-z0-9])([A-Za-z0-9])([A-Za-z0-9])([A-Za-z0-9])([A-Za-z0-9])([A-Za-z0-9])([A-Za-z0-9])/$$' /index.php?title=$1$2$3$4$5$6$7$8 [L]

RewriteRule '^/news/([A-Za-z0-9])([A-Za-z0-9])([A-Za-z0-9])([A-Za-z0-9])([A-Za-z0-9])([A-Za-z0-9])([A-Za-z0-9])([A-Za-z0-9]).html$$' /news/index.php?title=$1$2$3$4$5$6$7$8 [L]

阅读 1.9k
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
宣传栏