正規表現 Part8
■ このスレッドは過去ログ倉庫に格納されています
0773デフォルトの名無しさん
2011/11/15(火) 06:46:26.04http://example.com/%E3%81%82
↑これをhttp://example.com/index.php?word=%E3%81%82にリダイレクトしてたのですが
この度、http://example.com/%E3%81%82?lang=en にアクセスされた場合
http://example.com/index.php?word=%E3%81%82&lang=en にリダイレクトしたいのですが
うまく行きません。
RewriteRule ^(.*)(\?(.*))?$ /index.php?word=$1&$3
どのようにしたらいいでしょうか
■ このスレッドは過去ログ倉庫に格納されています