Redirect old page url after .htaccess url rewriting
问题 I have rewrited my url's with htaccess and now I want to redirect the old url's to the new ones, but I can't figure it out how to do it after all. This is my redirect rule used: RewriteRule ^page/([^/]*)/$ /page.php?name=$1 [L] The old url's look like this: page.php?name=page-name The new url's look like this: /page/page-name/ 回答1: That's a bit complex when you want redirect an url with GET parameters. Here's a trick to do it : RewriteRule ^page\.php$ %{QUERY_STRING} [C] RewriteRule name=(.*)