Url rewriting mod_rewrite
问题 I have the url such as: page.com/content.php?xname=p&yname=q&zid=1 I want to rewrite this url using apache mod_rewrite into something like: page.com/p/q/ note there should not be 'zid' parameter in renamed url. I know expressions are passed as GET into the original url. Is it possible to rename as above. If yes, How to achieve this? 回答1: This one works fine for me and will rewrite request for /p/q/ to /content.php?xname=p&yname=q&zid=1 . Options +FollowSymLinks -MultiViews RewriteEngine On