[wp-trac] [WordPress Trac] #12002: Multisite should not lock the root blog into using a /blog prefix
WordPress Trac
noreply at wordpress.org
Sun Dec 14 19:39:10 UTC 2014
#12002: Multisite should not lock the root blog into using a /blog prefix
----------------------------+-----------------------------
Reporter: wpmuguru | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Future Release
Component: Bootstrap/Load | Version: 3.0
Severity: normal | Resolution:
Keywords: needs-patch | Focuses: multisite
----------------------------+-----------------------------
Comment (by karincom):
Replying to [comment:31 SergeyBiryukov]:
> #30712 was marked as a duplicate.
Thank you indeed for the work you are doing.
Being unable to find a way to replace the '/blog' slug in root domain, I
am using a cron job to update the rewrite rules as work around ('/blog' to
'/en').
'''SQL QUERIES'''
{{{
UPDATE bb_options
SET option_value=replace(option_value,'blog/','en/')
WHERE option_name = 'permalink_structure';
UPDATE bb_options
SET option_value=replace(option_value,'blog/','en/')
WHERE option_name = 'category_base';
UPDATE bb_options
SET option_value=replace(option_value,'blog/','en/')
WHERE option_name = 'rewrite_rules';
}}}
It is working beutifully in my site.
So, '/blog' slug is hardcoded for the root blog.
But... it is very easy to change, so, it should be easy to create such
parameter.
REQUEST
Why not include such parameter in wp-config.php? At least for subfolders
installation.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/12002#comment:32>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list