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>
関連するかもしれない記事
- 【sitemix】ブログモード(wordpress)での.htaccessの修正について
- RewriteBaseは重要
- さくらインターネット+サブドメイン+サブディレクトリ+Nucleus+NP_CustomURL
- Apache mod_rewriteをDSOで有効化
- nucleusからwordpressへの移行
他のブログも読む



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