permalinks - Remove the blog slug from Wordpress Multisite root node

admin2025-06-02  1

I have been looking at whether it is possible to remove blog/ from the post & category URLs on the root node in a multisite setup.

I have found the multisite sites settings and removed the blog/ part of the URL and saved. Despite it changing all of the links correctly when I click them I just end up with a 404.

If I go to the node dashboard itself and resave I get the blog/ URL rewritten into the changed multisite permalinks. Sometimes creating something like this blog/news/postname

Has anyone managed to do this in the past? I am wondering if it is possible without hacking the core or getting a bit more hands on with some .htaccess rules.

I have been looking at whether it is possible to remove blog/ from the post & category URLs on the root node in a multisite setup.

I have found the multisite sites settings and removed the blog/ part of the URL and saved. Despite it changing all of the links correctly when I click them I just end up with a 404.

If I go to the node dashboard itself and resave I get the blog/ URL rewritten into the changed multisite permalinks. Sometimes creating something like this blog/news/postname

Has anyone managed to do this in the past? I am wondering if it is possible without hacking the core or getting a bit more hands on with some .htaccess rules.

Share Improve this question edited Mar 6, 2019 at 23:28 the 1,5682 gold badges13 silver badges32 bronze badges asked Jul 26, 2013 at 10:18 DavidDavid 3412 gold badges4 silver badges9 bronze badges 3
  • Did you try doing some research? There are lots of posts on the WP forums on this topic, as well as some blog posts – shea Commented Jul 26, 2013 at 10:24
  • I have found this plugin to work - github/WebDevStudios/remove-blog-slug, I got this link from the discussions here - jennybeaumont/remove-blog-slug-multisite-installations – JosephC Commented Oct 29, 2015 at 9:24
  • wordpress/plugins/remove-cpt-base – Ünsal Korkmaz Commented Sep 9, 2024 at 0:06
Add a comment  | 

6 Answers 6

Reset to default 25
  1. At blog site set Settings -> Permalinks -> Common Setting -> Default (Must select default only and don't touch any thing, If you need to change category base, tag base set at Network Admin only)

  2. At Network Admin -> Sites -> (root site) Permalink Sturcture -> /%category%/%post_id%

That it will remove /blog slug

Step 1: Go to /wp-admin/network/site-info.php?id=1

Network Admin -> Sites -> Edit -> check Permalink Structure.

Edit as per your requirement.

Step 2: Go to normal site level

Settings -> Permalinks

Select or add appropriate permalink.

These are the steps.

  1. Change the permalink setting in network admin to /%postname%/

  2. Going to permalinks settings of the site will fix the 404

  3. Result: Working WordPress Multisite without /blog/ slug.

Source with step-by-step screenshots.

Add a new page with news as slug. Go to Settings > Reading and choose your news-page as static page for blog posts.

Then go to Settings > Permalink and customize your structure like /%category%/%postname%/ and your blog post slugs should all be /news/post/ by now.

At root site, Click on permalink and choose "plain"

At network level Site > click edit under the root site > Click on settings > Do a crtrl + F to find "Permalink Structure" > add %post_id% in the field.

For anyone looking for the answer as off Dec 2018 do the following.

Go to the network admin, select the root website and click edit.

Goto the settings tab. There is a massive list of options, look for the Permalink Structure field. remove /blog from the Permalink and hit save. I also went back to the root blogs admin area and clicked on the save button on the permalinks section to clear the cache.

转载请注明原文地址:http://conceptsofalgorithm.com/Algorithm/1748835263a314118.html

最新回复(0)