Wordpress: two different constants for the same blog

Is there a way that we can have two different Permalinks in a Wordpress blog? This is because many of us start blogging when we have limited SEO knowledge and end up with some URLs that are not SE friendly.

Hence, many blog pages are already indexed by the search engine and we don't want to mess up the old URLs.

Thus, I want to create a new permalink different from the old one. Only a new post should use this permalink.

Is there any solution to this problem? Without 302 redirects, we want to create 2 different Permalinks in one Wordpress blog.

+2


source to share


1 answer


If you understand correctly, you only want to access old messages with the old constant reference structure (for example ?p=123

), and new messages with only the new structure (for example /2009/08/name-of-article

).

I'm afraid this is not possible without rewriting the Wordpress code (see the short explanation at the end of my answer).

However, I think Scott Yang permalink redirect plugin (scroll down to FAQ) or Dean Lee permalink migration plugin might be the solution.

When Wordpress creates a link (for example, for a new article, for "continue reading" links, or for search results), it will use the new permalink structure, even for old posts (which is unfortunately not what you intended). If someone, however, uses the old permalink, it will be rewritten on the fly and the user (or SE) will be redirected to the correct page.

This 301 redirect should contain your PageRank.




Explanation why different permalink structures for old and new posts in parallel mean changing the Wordpress code:

For each post, Wordpress stores a unique identifier (for example, "123") and an optionally unique postal name (for example, "article-name") in the database.

When accessing a URL with a constant constant such as /2009/08/name-of-article

, Wordpress translates it according to the current permalink configuration. If he creates a link, he also does so in accordance with the currently valid permalink rule.

You will need to add toe Wordpress code to use two different rules pertaining to article age.

+2


source







All Articles