How to change the default permalink structure for new WPMU sites?

Hello & good day to you :slight_smile:

I have just installed a WPMU today and started to add a new site. I realized that this new site is using a different permalink-structure than the structure of my main site:

/%year%/%monthnum%/%day%/%postname%/

I already had changed the permalink-structure for my main-site, but I’d like all new sites to have

/blog/%postname%/

by default.

How can I achieve this?

Thank you and kind regards,

Sascha

  • Predrag Dubajic
    • Support

    Hi sushling,

    What you can do here is to use our New Blog Templates plugin that will allow you to create subsites based on the selected template site and in that template site you can set desired permalinks that you want to use.

    Or you can add this code in theme functions.php or mu-plugin and that will rewrite the WP permalinks:

    add_action( 'init', function() {
    global $wp_rewrite;
    $wp_rewrite->set_permalink_structure( '/%year%/%monthnum%/%postname%/' );
    } );

    Hope this helps :slight_smile:

    Best regards,

    Predrag