Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
假设我有带有查询字符串参数的 URL,如下所示:
/index.php?test=MYID
使用 mod_rewrite,我怎样才能将它们重定向到像这样的 SES URL?
/index.php?view=MYID
尝试:
RewriteEngine On RewriteCond %{QUERY_STRING} ^test=(.*)$ RewriteRule ^index\.php$ /index.php?view=%1 [L,R=301]