Skip to content


WordPress -.htaccessにRedirect処理を追加

このエントリーをはてなブックマークに追加
はてなブックマーク - WordPress -.htaccessにRedirect処理を追加
Share on Facebook
Post to Google Buzz
Bookmark this on Yahoo Bookmark
Bookmark this on Livedoor Clip
Share on FriendFeed
Share on GREE

NucleusからWordpressへの移行に伴い、当サイト内のURLも大幅に変わった。

早いとこgoogle様に新しいURLをインデックスして欲しいのだが、待っててもらちがあかないみたいなので対処・・・。
Apacheの.htaccessにリダイレクト処理を入れて、旧URLを新URLに書き換えることにした。


こんな感じ。


# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress


<IfModule mod_alias.c>
Redirect permanent /_33.html http://itblog.posifeel.com/archives/12.html
Redirect permanent /_41.html http://itblog.posifeel.com/archives/20.html
Redirect permanent /_32.html http://itblog.posifeel.com/archives/11.html

</IfModule>

関連するかもしれない記事



他のブログも読む

Posted in Apache, WordPress.

Tagged with , , , .


0 Responses

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.



Some HTML is OK

or, reply to this post via trackback.

*