[wp-trac] [WordPress Trac] #30712: ENHANMENT: Wordpress Multisite -> subfolder installation -> remove /blog slug from root blog.

WordPress Trac noreply at wordpress.org
Sun Dec 14 18:13:28 UTC 2014


#30712: ENHANMENT: Wordpress Multisite -> subfolder installation ->  remove /blog
slug from root blog.
--------------------------------+-----------------------------
 Reporter:  karincom            |      Owner:
     Type:  enhancement         |     Status:  new
 Priority:  normal              |  Milestone:  Awaiting Review
Component:  Networks and Sites  |    Version:  4.0.1
 Severity:  normal              |   Keywords:
  Focuses:  multisite           |
--------------------------------+-----------------------------
 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/30712>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list