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.
にリダイレクトdomain.com/folder1/nisanth.php?id=1したいdomain.com/folder2/nisanth.php?id=1。htaccess 行をどのように記述できますか? 使ってみた
domain.com/folder1/nisanth.php?id=1
domain.com/folder2/nisanth.php?id=1
Redirect 301 /folder1/nisanth.php?id=$1 /folder2/nisanth.php?id=$1
しかし、役に立たない。
する必要があります
Redirect 301 /folder1/nisanth.php?id=(.*) http://www.domain.com/folder2/nisanth.php?id=$1
これはあなたを助けるはずです
RewriteEngine on RewriteRule ^/folder1/nisanth.php?id=(.*)$ /folder2/nisanth.php?id=$1 [L,R=301]