最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

301 Redirects for Changed Permalink Structure & Category Base

programmeradmin1浏览0评论

I'm redeveloping a site on a fresh WP install. The old site had the following permalink structure:

domain/CATEGORY/POSTNAME/

The new site has the following permalink structure:

domain/YEAR/MONTH/POSTNAME/

I need to set up a 301 redirect in htaccess that correctly redirects the old posts. I've found a lot of rewrite rules for the opposite way (YEAR/MONTH/POSTNAME/ to CATEGORY/POSTNAME/) but none for the way I need.

I prefer not to use a plugin. It appears that all the redirection plugins don't work. But, if Dean's Permalink Migration is recommended I'll use it.

I'm redeveloping a site on a fresh WP install. The old site had the following permalink structure:

domain/CATEGORY/POSTNAME/

The new site has the following permalink structure:

domain/YEAR/MONTH/POSTNAME/

I need to set up a 301 redirect in htaccess that correctly redirects the old posts. I've found a lot of rewrite rules for the opposite way (YEAR/MONTH/POSTNAME/ to CATEGORY/POSTNAME/) but none for the way I need.

I prefer not to use a plugin. It appears that all the redirection plugins don't work. But, if Dean's Permalink Migration is recommended I'll use it.

Share Improve this question edited Nov 19, 2011 at 23:51 scpers0n asked Nov 19, 2011 at 23:21 scpers0nscpers0n 536 bronze badges 1
  • Were you able to figure this out or are you still looking for help? – Jonathan Wold Commented Jan 22, 2012 at 17:22
Add a comment  | 

1 Answer 1

Reset to default 1

WordPress actually 301's these out of the box! It handles a number of basic structures by default, so unless you're switching to or from a very unique configuration (e.g. /blog/%postname%/), it will probably work.

发布评论

评论列表(0)

  1. 暂无评论