Tag Archives: permalinks

How To Auto Redirect Old Permalinks To New Ones In WordPress?

Changing WordPress default permalinks to a “Post Name” structure is crucial for better SEO, user experience, and readability. Default URLs in WordPress are often unattractive and not informative (e.g., ?p=123). By switching to post name permalinks, the URLs become more meaningful and descriptive (e.g., example.com/sample-post), which helps search engines understand the content better, leading to improved rankings.

Additionally, this format is more user-friendly, making it easier for visitors to remember and share, enhancing your site’s visibility and accessibility. But the problem occurs when you switch to a new permalink structure (Dashboard -> Settings -> Permalinks), your old links archived by search engines or shared on social media become a broken link to your website.

In this lesson, you will learn about auto-redirecting old permalinks to new ones. You can simply change your default WordPress permalinks, switch to SEO-friendly post-name permalinks, and then automatically redirect old permalinks to new ones in one click with the help of a plugin.

WP Permalink Redirect is a WordPress plugin that automatically process permalink redirection on your website. All you have to do is install-activate it and that’s all. The plugin has no configuration page, it immediately starts to work upon activation.

Upon activation, the plugin also removes duplicated content issues and redirects your visitors to the new permalink using a 301 i.e. permanently redirect status code. You can even confirm its working with Google webmaster tools. It also takes good care of website pagination of taxonomies like categories and blog lists to allow them to work normally on your WordPress site.

How To Remove The Tag Base From WordPress Permalinks?

You can remove the base tag slug in the WordPress permalinks structure. Earlier this was done with the help of a plugin or PHP function but now you can do it from your admin area dashboard.

By default the tag URL on WordPress looks something like this – yourdomain.com/tag/tag-name, now we have to remove the tag from the permalink so that URLs should look something like this yourdomain.com/tag-name/.

These steps allow you to remove the tag prefix completely by modifying your site’s permanent link settings.

  1. Navigate to your WordPress dashboard
  2. Navigate to Settings -> Permalinks page
  3. Scroll to Custom Structure and put ‘/%tag%/%postname%/’.
  4. Go to Tag Base and type in a dot “. “
  5. Save your changes.

The tag prefix is removed by typing the dot in the tag base field. It completely removes the mandatory tag base from the tag permalinks, so the tag name comes right after your domain name in the permalink structure.

By default, this field is left blank which represents the default prefix.

How To Remove The Category Base From WordPress Permalinks?

You can remove the base category slug in the WordPress permalinks structure. Earlier this was done with the help of a plugin or PHP function but now you can do it from your admin area dashboard.

By default the category URL on WordPress looks something like this – yourdomain.com/category/category-name, now we have to remove the category from the permalink so that URLs should look something like this yourdomain.com/category-name/.

These steps allow you to remove the category prefix completely by modifying your site’s permanent link settings.

  1. Navigate to your WordPress dashboard
  2. Navigate to Settings -> Permalinks page
  3. Scroll to Custom Structure and put ‘/%category%/%postname%/’.
  4. Go to Category Base and type in a dot “. “
  5. Save your changes.

The category prefix is removed by typing the dot in the category base field. It completely removes the mandatory category base from the category permalinks, so the category name comes right after your domain name in the permalink structure.

By default, this field is left blank which represents the default prefix.

Alternatively, you may add the following rule in .htaccess file present in the root directory of your website :

RewriteRule ^category/(.+)$ https://www.yoursite.com/$1 [R=301,L]

This also removed the category base, don’t forget to replace yoursite.com with your domain. The same can be done with the help of the Yoast SEO plugin. If you are using it on your website simply navigate to Yoast SEO -> Search Appearance and open the ‘Taxonomies’ tab.

Scroll to the Category URLs, select ‘Remove the categories prefix’, and save the changes.

How To Update Old Links After Changing The Domain Name In WordPress?

After changing your domain name, installing SSL, or changing any link on your website, the most important thing you need to do is update the links on your website.

When you move your WordPress Website to a new domain name, the most common issue that you notice is all internal links to pages and references to images are not updated, images don’t show up and internal links don’t work as they point to the old address which you have abandoned. This lesson will guide you two easy processes of updating such URLs on your WordPress site.

How To Update All Your WordPress Site URLs In One Click?

Login to your WordPress site and navigate to Plugins -> Add New page to find and install Update URLs plugin on your website. Upon activation, navigate to Tools -> Update URLs page.

Here you simply need to type the old URL and the new URL address, then use the tick box option to select where you want to update URLs such as on posts, pages, attachments, excerpts or all GUIDs and then click ‘Update URLs Now’ button. That’s it, your URLs would get updated.

How To Auto Update Website URLs After Migrating To A New Domain Name?

There’s another plugin that automatically detects the domain name change and the auto-updates all old links and WordPress tables in the database of your website. It is especially coded for the domain name change and you don’t require to selectively mention the changes.

Navigate to Plugins -> Add New page to find and install Automatic Domain Changer plugin on your WordPress site. After activation, navigate to Tools -> Change Domain and first you may backup and save your website database by clicking ‘Backup Database as SQL’.

Next, type the old domain name and new domain name in the fields and click ‘Change Domain’ button. The plugin lets you update HTTPS and the links with or without the ‘www’ prefix.

How To Use SEO Friendly URL Structure In WordPress?

Default WordPress URL structure i.e. permalink structure is not considered as SEO friendly. Search engine likes permalinks with post name as slug in them.

SEO friendly URL structure increases your chance of better ranking on search engines like Google etc. Likewise search engines are the largest source of traffic to popular blogs and organic traffic also gives you better ad revenue.

A SEO friendly URL structure is a user-friendly URL structure in which a visitor can know where he is going to simply by looking at the URL. This also works for search engines as well.

Continue reading How To Use SEO Friendly URL Structure In WordPress?

Rebuild Permalinks Based on Post Titles In WordPress

Permalinks with post name are considered more SEO friendly. Earlier we have discussed how you can change your website’s permalink structure and then redirect old permalinks to new ones.

This works great while switching to new permalink structure from WordPress admin screen of permalinks (Settings -> Permalinks) but what if you have used permalinks of words other than your post’s title, in such case you can use another plugin for regenerating post permalinks based on your post’s title.  Continue reading Rebuild Permalinks Based on Post Titles In WordPress

How To Regenerate Permalinks Based On Post Titles In WordPress ?

Regenerate post permalink allows you to easily regenerate all your posts & post type permalinks based on post titles in WordPress. The plugin is created by Sandor Kovacs. He imported blog posts having non relevant permalinks from different WordPress weblogs, he wanted to have all the permalinks based on the title so he authored this useful plugin.

Continue reading How To Regenerate Permalinks Based On Post Titles In WordPress ?

WordPress Dashboard Interface For Controling Permalinks And .htaccess File

Now you can customize and control permalinks structure and .htaccess file direct from your WordPress admin areadashboard. WP htaccess Control should really be called as htacess and Rewrite Control plugin. The plugin provides you an easy interface for customizing htaccess file generated by WordPress and also its permalinks structure of author, category, archives, pagination and custom taxonomies.

Continue reading WordPress Dashboard Interface For Controling Permalinks And .htaccess File

Easily Test Your WordPress Site Rewrite URL Rules

Monkeyman Rewrite Analyzer understand your rewrite rules (“Permalinks”). It is indispensable if you are adding or modifying rules and want to understand how they work (or why they don’t work).

Continue reading Easily Test Your WordPress Site Rewrite URL Rules