Apache Rewrite 问号匹配问题

如:news.php?id=1 到 /news/index.php?id=1

方法一:

  RewriteRule ^news\.php(.*) /news/index.php$1 [L]

方法二:

  RewriteEngine on

  RewriteCond %{QUERY_STRING} ^id=(.+)$

  RewriteRule ^news\.php$ /news/index.php?id=%1 [L]

解决Rewrit问号不能匹配

最新评论:

no.10153 jlke7hkpts9 188.143.232.32 2016-06-08 13:04

The forum is a brgteihr place thanks to your posts. Thanks!

发表评论:

邮箱: