過去数時間、drupalのルートにある.htaccessファイルを使用して、古いmamboWebサイトから新しいdrupal7Webサイトへのカスタムリダイレクトを作成しようとしています。私がやりたいのは...
301リダイレクト
http://mysite.com/index.php?option=com_content&task=blogsection&id=11&Itemid=54
に
http://mysite.com/this-is-the-new-page
これは私の.htaccessファイルです...
RewriteEngine on
RewriteRule ^index.php?option=com_content&task=blogsection&id=11&Itemid=54$ http://mysite.com/this-is-the-new-page [R=301,L]
RewriteRule "(^|/)\." - [F]
RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
RewriteRule ^ http://%1%{REQUEST_URI} [L,R=301]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !=/favicon.ico
RewriteRule ^ index.php [L]
私はそれがこの行と関係があると確信しています...
RewriteRule ^ index.php [L]
でもわからない!私がこれを使うかどうかわかります...
RewriteRule ^option=com_content&task=blogsection&id=11&Itemid=54$ http://mysite.com/this-is-the-new-page [R=301,L]
これの代わりに...
RewriteRule ^index.php?option=com_content&task=blogsection&id=11&Itemid=54$ http://mysite.com/this-is-the-new-page [R=301,L]
そして、FirefoxとLiveHTTPヘッダーアドオンでテストしてください。
助言がありますか?!
ありがとう!