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 (first)?lang=rus&menu=about到 this (second)的重写规则/about_project/。
?lang=rus&menu=about
/about_project/
我目前有这个.htaccess文件:
.htaccess
RewriteEngine on RewriteBase / RewriteRule ^about_project/$ index.php?lang=rus&menu=about [L]
但这会从第二个重定向到第一个,我需要一个从第一个到第二个的规则!
RewriteRule ^[/]about_project/$ index.php?lang=rus&menu=about [L]
您应该在开始时寻找 / 。
您可以使用此工具:
http://www.generateit.net/mod-rewrite/
它非常有用。