开发者

Wordpress Permalink problem on current site (Wp Network)

开发者 https://www.devze.com 2023-02-13 21:30 出处:网络
I\'m using wordpress. Installed in the subfolder. (webroot/blog) Permalinks was before: http ://www.mysite.com /blog/ sample-post.html

I'm using wordpress. Installed in the subfolder. (webroot/blog)

Permalinks was before: http ://www.mysite.com /blog/ sample-post.html

I actived the network.

Permalinks after: http ://www.mysite.com /blog/blog/ sample-post.html

wp-config.php

...
    define('WP_ALLOW_MULTISITE', true);
    de开发者_如何转开发fine( 'MULTISITE', true );
    define( 'SUBDOMAIN_INSTALL', false );
    $base = '/blog/';
    define( 'DOMAIN_CURRENT_SITE', 'www.mysite.com' );
    define( 'PATH_CURRENT_SITE', '/blog/' );
    define( 'SITE_ID_CURRENT_SITE', 1 );
    define( 'BLOG_ID_CURRENT_SITE', 1 );
...

Main Site Permalink Settings http://i.stack.imgur.com/GyhWf.jpg


how to do it?

http://www.mysite.com/blog/sample-post.html


If you activated network you cannot have the wordpress installed in a sub directory. It has to be in your html directory.

You might want to use a subdomain, or if you are not using network, disable it.


Yes, you can install a network in a folder. Where people get confused in the warnings is there part where they misread the information given.

you cannot install a network in a folder and run the address off the root.

This has no relevence to your problem, but I'm clarifying it for other answerers.

the /blog/ in your permalinks is added to the main blog only to prevent collisions. Look for the "remove blog permalink" plugin.

in 3.0 there was a bug allowing you to remove this manually.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号