heaccessで複数のリダイレクト処理を行いたいのですがうまくいきません。
やりたいことは
http://www.example.com/?act=1 を http://www.example.com/11.html へリダイレクト、
http://www.example.com/?act=2 を http://www.example.com/22.html へリダイレクト
http://www.example.com/?act=3 を http://www.example.com/33.html へリダイレクトです。
下記のよう記載しましたがダメでした。
<IfModule mod_rewrite.c> RewriteEngine On # Authorization ヘッダが取得できない環境への対応 RewriteCond %{HTTP:Authorization} ^(.*) RewriteRule ^(.*) - [E=HTTP_AUTHORIZATION:%1] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !^(.*).(gif|png|jpe?g|css|ico|js|svg)$ [NC] RewriteRule ^(.*)$ index.php [QSA] RewriteRule ^?act=11$ http://www.example.com/11.html [R=301] RewriteRule ^?act=22$ http://www.example.com/22.html [R=301] RewriteRule ^?act=33$ http://www.example.com/33.html [R=301,L] </IfModule>

バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2017/10/25 01:46
2017/10/25 03:53