• Typically, when I configure a WordPress multisite, I leave the permalink setting defaulted so child sites look something like: testsite/2017/12/11/sample-post/. But, in an effort to create prettier links, how do you configure the parent site that, upon child site creation, will create permalinks that look something like testsite/sample-post/ instead? Is it a change in the .htaccess file?

    • This topic was modified 7 years, 3 months ago by mchildress.
Viewing 3 replies - 1 through 3 (of 3 total)
  • I personally prefer the /sample-post/ structure, but if you’re a pretty big blog, or plan to host a lot of things, having a different categorization might help too.

    Thread Starter mchildress

    (@mchildress)

    Thanks cspiliakos. I agree, I would prefer the /sample-post/ structure as well but the challenge is how to force newly created sites to use that structure without having to go in and change them manually. One suggestion I came across was to create an MU plugin with the following code:

    <?php
    add_action( 'init', function() {
    global $wp_rewrite;
    $wp_rewrite->set_permalink_structure( '/%postname%/' );
    } );
    ?>

    Thanks for the response. Much appreciated.

    Well, i would u the /sample-post/ structure too. Especially when you’re thinking about search engine optimization. Using the right keywords in your URL will help you somewhat.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Recommended Permalink Setting’ is closed to new replies.