http://hoge.hoge.com/abc/xyz/index.php?page=xml&style=sitemap
上記のページへ、http://hoge.hoge.com/sitemap.xmlで,アクセスしたいのですが、mod_rewriteの設定が上手くいかず、404errorが発生してしまいます。
リダイレクトさせたいのは、このページのみです。
RewriteEngine on
RewriteRule ^sitemap\.xml /modules/sitemap/index.php?page=xml&style=sitemap [L]
見よう見まねで上記のように.htaccessに記述してみたのですが、上手くいきません。
オプションに[R]を、指定するとリダイレクトはしているのですが・・・。
書き方等、教えていただければ幸いです。
補足:Xoops2.0.16ajpでサイトを構築しています。
RewriteRule ^sitemap\.xml /abc/xyz/index.php?page=xml&style=sitemap [L]
では?
RewriteEngine on RewriteRule ^sitemap.xml$ abc/xyz/index.php?page=xml&style=sitemap [L]
でしょうか?
試してみましたが、ページは存在しませんのエラーが出ます。
xoopsに依存する問題なのでしょうか。。。
引き続き、お気づきの点があれば、よろしくお願いします。
コピペして、直すの忘れてました(汗)
RewriteRule ^sitemap\.xml /abc/xyz/index.php?page=xml&style=sitemap [L]
で、お願いします。