上个教程我们讲了WordPress开启多站点配置,但是配置完之后,主站的url路径会变成www.seoyh.net/blog/这样(如下图),那么这时候就需要清除这个后缀,才能使网站的url路径变的正常。可以在数据库里面直接运行以下语句:
UPDATE wp_options
SET option_value = REPLACE(option_value, '/blog/', '/')
WHERE option_name = 'permalink_structure' OR
option_name = 'category_base' OR
option_name = 'tag_base';
UPDATE wp_options
SET option_value = REPLACE(option_value, '"blog/', '"')
WHERE option_name = 'rewrite_rules';
当执行完成后,网站的URL就变会之前那样了。

专注一点,放眼未来。
感谢阅读,欢迎交流实践中的新发现。
Pretty section of content. I jut stubled pon yoour websote and in accesskon capital to assert
hat I get in fact enjoyed account your log posts.Anyy wway I will be subsceibing to
your augment and even I acchievement you access consistently quickly.
xnxx