-1

にリダイレクトdomain.com/folder1/nisanth.php?id=1したいdomain.com/folder2/nisanth.php?id=1。htaccess 行をどのように記述できますか? 使ってみた

Redirect 301 /folder1/nisanth.php?id=$1 /folder2/nisanth.php?id=$1

しかし、役に立たない。

4

2 に答える 2

0

する必要があります

Redirect 301 /folder1/nisanth.php?id=(.*) http://www.domain.com/folder2/nisanth.php?id=$1
于 2013-03-21T08:51:10.660 に答える
0

これはあなたを助けるはずです

RewriteEngine on
RewriteRule ^/folder1/nisanth.php?id=(.*)$ /folder2/nisanth.php?id=$1 [L,R=301]
于 2013-03-21T09:23:20.053 に答える