Categories: SEO

WordPress permalink plugins to make SEO hierarchy URLs

Few days before, I made a big change on this website, which few of you might already have noticed. If you are for the first time on this website and you are coming via search engines, you might have noticed that the URL on the SERP is different from the URL of the page.Yes, I modified the permalink structure of this Blog with a new meaningful hierarchy.

In past, the post URL where like “www.htmlremix.com/post-name” which gives all the posts an equal value. But it was not having a hierarchy. So I decided to make it like “www.htmlremix.com/categoryname/post-name” . Just what I need to do is, change the permalink of post url to /%category%/%postname% . But I will lose all the traffic that which are linked to old URLs. So I tried so many plugins to redirect all those visitors to new URL. But most of them need to manually add the old and new ULR which is a massive job. Finally I found “Permalinks moved permanently” which automatically redirects both visitors and bots with a 301 permanent redirection header.

Now the category URLs are like “www.htmlremix.com/categoryname” which was like “www.htmlremix.com/category/categoryname” in old structure. That was annoying and the term category was absolutely wastage. I tried to use “Brianshoff” technique by adding one line code in the “wp-includes/template-functions-category.php”.

On line 36 of the wp-includes/template-functions-category.php file, you’ll see the code:

$catlink = str_replace(‘%category%’, $category_nicename, $catlink);

To remove “category” from the URL, simply add this line under it:

$catlink = str_replace(‘category/’, ”, $catlink);

But I am worried about future updates from wordpress which may overwrite those files. Finally I found an extension for this. No configuration needed for this “Top Level Categories“.

At present the Bog is a perfect SEO Blog by means of link structure.

www.htmlremix.com – root
www.htmlremix.com/seo – Category page
www.htmlremix.com/seo/keywords-in-url-matters-seo A post under category SEO.

Remiz

Remixed version of unstable human emotions and thirst of mankind actions. UX designer, UI developer and HE of WebCastle Media Pvt LTD

View Comments

  • Hey very nice blog!!....I'm an instant fan, I have bookmarked you and I'll be checking back on a regular....See ya

  • Wow! Thank you! I always wanted to write in my blog something like that. Can I take part of your post to my site? Of course, I will add backlink?

  • Прикольная статья, но хотелось бы поподробнее узнать о некоторых моментах... Как можно с Вами связаться?
    [eng] : Cool article, but would like to know more in detail about some aspects ... How can we contact you?

  • @Remiz - when you use the permalink structure of /%category%/%postname%/ do you allow or disallow categories in your robots.txt file or SEO plugin?
    Many people feel that if you allow the bots to access your categories, they get better SEO as long as they are using excerpts or the read more.
    All that I have seen so far is more pages in the search results allowing the bots to access my categories and I get a little more web traffic.

  • I use the same permalink structure, /%category%/%postname% which works very well for a little extra add SEO.
    One thing that I have noticed is a big move of A list bloggers just using /%postname%/. I am wondering if they know something that many of us don't know?

    • /%postname%/ makes direct root access to all pages in the blog which helps bots to crawl easier. But they are having less hierarchy when it comes with category and all. And more over SEO is mind game more than theories :)

  • Lets see how it works? but I heard that top level urls got better ranking? other than you are going to depth urls. But i am using as yours with .html extension :)

Recent Posts

Revolutionizing Web Development with AI: Tools and Techniques for Improved Productivity and Accuracy

AI is being used in programming to improve efficiency, accuracy and automation. It is being used in machine learning algorithms…

1 year ago

Apple push notification php example code 2021

For a long time since Push notification became a thing on iOS, it was very simple to integrate push notification…

3 years ago

Solved: MySQL convert_tz returns null on MacOS Catalina using XAMPP

Note: A little bit of a story since I haven't been writing for a while. If you are in a…

4 years ago

Why You Should Hire a Creative Marketing Agency for Your Next Campaign

There are few things that are quite as universally important in a business like marketing. Good marketing is at the…

5 years ago

Bring back PPTP VPN on iOS 10 and macOs sierra

Since latest iOS and macOs removed support for PPTP VPN from their built in client, here is how you can…

8 years ago

This will Change

Back to habits of young days. Shaping up another life. Starting like a kid who is a great king.

10 years ago