herb miller

WordPress plugin specialist

  • Home
  • About
    • Online CV
    • Contact
    • Find me
  • Shop
    • Seriously Bonkers – softback book
    • Seriously Bonkers – signed book
    • Seriously Bonkers – PDF
  • Dev env
    • Local development
    • WordPress plugins
    • Server environments
    • Development hardware
    • WAMP configuration
    • Tools and languages
    • What’s not in my development environment?
    • Anything else in your development toolkit?
  • Sites
How to remove /blog/ from WordPress Multi Site permalink structure

How to remove /blog/ from WordPress Multi Site permalink structure

If you’ve ever converted a single installation of WordPress into a WordPress Multi Site ( WPMS ) network using subdirectories, you’ll have noticed that the prefix for blog permalinks for the primary site changes from https://example.com/
to
https://example.com/blog/

If you are concerned that this new permalink structure will cause problems in the future then you may choose to remove the blog/ part.

It is possible to remove this prefix

  • Login as a Super Admin
  • Go to Network Admin -> Sites
  • Choose the Main site and click on Edit.
  • Choose the Settings tab
  • Find the Permalink Structure text field.
  • Remove the /blog text, leaving /%year%/%monthnum%/%day%/%postname%/
  • Scroll to the bottom and Save Changes.

Why would you want to do this?

  • So that permalinks for blog posts remain unchanged.
  • Because you think it would be better for SEO.
  • To prevent broken links.

Caveats

Some people say that making this change is not recommended. The reason for adding the blog/ prefix is to prevent conflicts with URLs in other sites in the network.

If you do this on the main site of your network, you must make sure that none of your posts, categories, tags, or custom post types and taxonomies have a slug equal to the slug of a subsite.

I did this on a local install, creating a subsite called 2020. Then I forgot about it, updated to WordPress 5.5-beta3 and thought the hack had stopped working. I’m going to have to fiddle with the new sub-site’s name now.

Categories: Multi Site, WordPress

Published: June 15, 2020 | Last updated: July 23, 2020

Products

  • Seriously Bonkers - signed book £8.99 £5.99
  • Seriously Bonkers - PDF £1.00
  • Seriously Bonkers - softback book £8.99 £4.99

Recent Posts

  • Localization of Full Site Editing themes
  • Fizzie – an experimental Full Site Editing theme
  • How to survive WordPress 5.5’s removal of jQuery-migrate
  • SB Children block – my first Single Block plugin
  • Horizontally scrolling tables on narrow devices

Recent Comments

  • Aprende gutenberg #49 - Aprende gutenberg on SB Children block – my first Single Block plugin
  • Richard Cagle on Installing Imagick for PHP 7 on Windows 10
  • WordCamp Birmingham on bucket list – WordCamp Birmingham UK 2015 (#wcbrum)
  • mick on WordPress capabilities: How to restrict Add New while allowing Edit
  • mick on WooCommerce 2.2.4 – Dynamic API Reference

Archives

Categories

WordPress 5.6. PHP: 7.3.26

WordPress version: 5.6

Gutenberg version: 9.7.0

Tide times from tidetimes.co.uk

Tide Times & Heights for Northney on Wednesday, 27 January 2021
Low Tide: 03:43 ( 1.40m )
High Tide: 10:43 ( 4.40m )
Low Tide: 16:05 ( 1.00m )
High Tide: 23:16 ( 4.30m )

Tide times from tidetimes.org.uk

Tide Times & Heights for Northney on 27th January 2021
03:43 - Low Tide ( 1.36m )
10:43 - High Tide ( 4.35m )
16:05 - Low Tide ( 1.01m )
23:16 - High Tide ( 4.34m )

Follow me

  • Home
  • About
  • Blog
  • Contact
  • Find me
  • Privacy notice
  • Sitemap

Site:  herbmiller.me
© Copyright herb miller 2012-2021. All rights reserved.


Website designed and developed by Herb Miller of Bobbing Wide
Proudly powered by WordPress