Change /blog slug in options-permalink.php
-
Like many new multisite users, I’m would really like to remove “blog” from the URL of my primary site. However, trying to change the permalinks settings to just /%postname%/ seems to have lots of downsides (it gets reset; there are a lot of broken links all over the site, since we link back to our own posts frequently). So, I would like to just change the word “blog” to something more benign, like “1” or “home.”
I found this solution, which suggests going into the options-permalink.php to change the word “blog”:
https://wordpress.stackexchange.com/questions/131582/wordpress-3-8-1-multisite-blog-slug-problemMy current options-permalink.php file on the server now says this, as recommended:
$prefix = $blog_prefix = ''; if ( ! got_url_rewrite() ) $prefix = '/index.php'; if ( is_multisite() && !is_subdomain_install() && is_main_site() ) $blog_prefix = '/1'; if ( isset($_POST['permalink_structure']) || isset($_POST['category_base']) ) { check_admin_referer('update-permalink');
Yet, if you go to my site, it still has “blog” in the URL instead of “1”. That is true not only for existing posts but also for new posts, so it’s not just a lack of retroactivity (namely, it’s not that subsequent posts will reflect that change in some way).
Here is the website: https://ciw-online.org/
Any advice would be helpful.
- The topic ‘Change /blog slug in options-permalink.php’ is closed to new replies.