Wordpress: Two different Permalinks for same Blog - wordpress

Is there any way we can have two different Permalinks in a Wordpress blog? This is because lot of us starts blogging when we have limited knowledge of SEO and end up in some URLs which are not that SE friendly.
Hence lot of pages from Blogs are already indexed by search engine and we do not want to spoil old URLs.
Thus I want to create new Permalink that is different than the old one. Only the newer post should use this permalink.
Is there any solution to this problem? Without 302 redirect we want to create 2 different Permalinks in the same Wordpress blog.

If I understand you correctly, you want to access the old posts only with the old permalink structure (e.g. ?p=123), and the new posts only with the new structure(e.g. /2009/08/name-of-article).
I'm afraid this is not possible without rewriting the Wordpress code (see short explanation at the end of my answer).
However, I think that Scott Yang's permalink redirect plugin (scroll down to FAQ) or Dean Lee's permalink migration plugin could be a solution.
Edit: both sites no longer exist. There are snapshots on Archive.com:
Scott Yang’s plugin, Dan Lee’s plugin.
These plugins are over 10 years old, however. The WP Redirect Permalink plugin might provide a similar service.
When Wordpress generates a link (e.g. for a new article, for "continue reading" links or for search results), it will use the new permalink structure, even for the old posts (which sadly isn't exachtly what you intended). If someone however uses an 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 keep your page rank.
Explanation why having different permalink structures for old and new posts in parallel would mean changing Wordpress code:
For each post, Wordpress stores an unique ID (e.g. "123") and not necessarily unique post name (e.g. "name-of-article") in the database.
When an URL with a permalink like /2009/08/name-of-article is accessed, Wordpress translates this according to the currently configured permalink structure. If it constructs a link, it also does this according to the currently configured permalink rule.
You would need to add code toe Wordpress so that it uses two different rules depening on the age of the article.

Related

Wordpress Permalink Redirect "/%postname%/" to "/%postname%-%post_id%.html"

We changed to our wordpress site's permalink structure from "/%postname%/" to "/%postname%-%post_id%.html". For example from "site.com/post" to "site.com/post-12345.html". We are using also AMP version of site and there are links' AMP versions like "site.com/amp/post-12345.html".
There are a lot of different examples with different variations of permalink redirect on internet. But we can not find a redirect way. As we understand it is not possible with htaccess. We tried a lot of functions.php codes that we finded from StackOverflow and other sites, but the redirect could not work. As we say there are a lot of examples on google but any of these is not the same to our permalink redirect structure.
We find some codes from a Chinese site about Scott Yang's Permalink Redirect plugin which is deleted from WP repository. The normally there is not a plugin version of this but we used these codes like a plugin. It has worked for some conditions. But for some link like AMP it gives error and plugin's settings are not stable.
How can we redirect our links correctly with amp and without any loop?

Wordpress url and folder structure

I'm working on migrating a static site to a new one based on Wordpress as a work platform.
The old site contains static html pages and a separate folder for the blog.
As a result I get the following URLs www.mysite.com / blog / category-name / post-number-one.
On the new site, WordPress turns the URL into www.mysite.com / category-name / post-number-one, removing the blog/ part.
For the sake of SEO, I must keep these urls like the old site. Is there a way using Wordpress to maintain this structure for blog posts only?
Yes, in the Wordpress admin, go to the Settings Tab, then the Permalinks menu. There will be a section called "Category base". Add "blog" there.
That should make it so the blog the categories are prefixed with /blog/category-name/post-number-one.
I had a similar issue. Basically I was running two Wordpress installations. One for pages and one for blog. Long story behind that.
But I eventually I needed to merge the WP installations.
In my case I also needed to go to Settings -> Reading and set the Posts page to "Blog", which was an empty page I named Blog also. This made it so the blog would be viewed at http://mydomain/blog/. I'm not sure if you wanted that too.
But yeah for the categories, you just need to add "Category base" under the permalinks setting.
in your general settings, you can set a subfolder as your url, which can be hard to debug when you have problems, in my experience.
the other is that if you go into your clean urls settings page, you probably can simply add a string before your other %params%

Converting a static site to a Wordpress site...how to transfer/convert SEO rankings?

I'm going to convert a client's static site, all hand coded HTML pages to Wordpress. They have a bunch of static pages that I'm going to keep as 'pages' in Wordpress. There will be some static content that I'm going to convert into blog entries (and back date them).
How do I transfer their search engine rankings to the new Wordpress site? Some will be a static page converted to a Wordpress 'page' and some will be a static page converted to a blog entry?
Use 301 redirects in your .htaccess in root. All search bots recognize 301 redirects as permanent redirects and don't drop the pages from indexes, but reassign the URL. Put them above the Wordpress rewrite block in .htaccess.
The format is:
Redirect 301 /myoldurl.html http://mydomain.com/newpagename
Notice that the domain is not included in the first URL, only the page name with suffix, assuming it's in root.
Or use WordPress › Redirection « WordPress Plugins to manage redirects inside the WP admin area and log them, too.
You can usually create a permalink structure to match the client's old URL structure.
This is better than the htaccess approach since it is easier to maintain long term. The client won't have to adapt to a new URL structure, and you won't lose any SEO value as you would with 301s ( http://www.marketingpilgrim.com/2010/03/google-confirms-301-redirects-result-in-pagerank-loss.html ).
For example if the old client URL was:
http://www.example.com/blue/widgets.html
you can use the permalink structure of:
/%category%/%postname%.html
You would then create a page (or post) with the post slug of 'widgets' and categorize the page within the 'blue' category which would give you the exact same URL as they had before.
If the old site uses a variety of inconsistent URL formats, this approach is slightly less effective. But you can still do this with the most used URL format, then 301 the other URL formats.
Hope this helps!
In your destination server, you can customize the .htaccess file to redirect old pages URL to new ones. The old URL will still work and the page rank will be kept.
I would consider using Jekyll to do this. It will enable you to create exactly the same site with the same HTML structure. It will give you full control, and therefore not damage SEO. You can add CloudCannon as a CMS and make your site responsive using media queries, like this: http://www.usecue.com/2016/04/21/two-viewports-to-rule-them-all.html. Baby steps will avoid SEO disasters.

Migrating Wordpress Permalinks from postname to post_id/postname

My blog's been up for a year or so, and 90% of our traffic comes from Google, so I want to make sure that I'm handling this permalink change properly. I recently read on Wordpress' codex that including the numerical %post_id% at the beginning of your permalinks can greatly reduce the stress on your database, when a post or page is being fetched. So, I decided to change my permalink structure from /%postname%/ to /%post_id%/postname/.
Now, if I type in, or click on a link to my site in google that looks like this - http://blog.com/cool-post/, it seems to redirect to my new structure: http://blog.com/34424/cool-post/ without a hitch. I'm trying to figure out whether I need to use a 301 redirect plugin or not. I would like to think that search engines like Google will see the same "flawless" redirection that I'm seeing. There doesn't seem to be any broken links. Just looking to confirm that I'll be okay after this change.
Thanks
WordPress handles canonical redirects for you by sending 301 Moved Permanently status codes appropriately. That status code ensures Google will only index your posts by the new URLs (i.e. with the post IDs in your permalinks). I've not used a redirection plugin for a while and my sites have been indexed similarly just fine.

Is there a way to use a different URL structure for static pages in WordPress 2.9?

I have WP 2.9 installed on an IIS 7 server. Permalinks works with the URL Rewrite add-on for IIS, but I'm wondering if it's possible to use different permalink structures for pages and posts. For instance:
Pages would be: www.url.com/$pagetitle/
Blog posts would be: www.url.com/blog/$entrytitle/
Is this possible?
Standard wordpress permalinks have page titles without dates, and you can also get rid of the date in posts: Customize Your Dated WordPress Permalinks - Perishable Press.
And get rid of the category base, too: Wordpress Supplies » Wordpress Plugins » WP No Category Base
What you're describing is actually the default behavior if you use a custom permalink (at least on Apache... it might be different in IIS).

Resources