简体   繁体   English

当前站点上的Wordpress永久链接问题(Wp网络)

[英]Wordpress Permalink problem on current site (Wp Network)

I'm using wordpress. 我正在使用wordpress。 Installed in the subfolder. 安装在子文件夹中。 (webroot/blog) (webroot /博客)

Permalinks was before : http ://www.mysite.com /blog/ sample-post.html 固定链接是以前 :HTTP://www.mysite.com /博客/样品post.html

I actived the network. 我激活了网络。

Permalinks after : http ://www.mysite.com /blog/blog/ sample-post.html 固定链接 :HTTP://www.mysite.com /博客/博客/样品post.html

wp-config.php wp-config.php

...
    define('WP_ALLOW_MULTISITE', true);
    define( '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 主站点永久链接设置 http://i.stack.imgur.com/GyhWf.jpg


how to do it? 怎么做?

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

If you activated network you cannot have the wordpress installed in a sub directory. 如果您激活了网络,则无法在子目录中安装wordpress。 It has to be in your html directory. 它必须在您的html目录中。

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. 永久链接中的/ blog /被添加到主博客中只是为了防止冲突。 Look for the "remove blog permalink" plugin. 查找“删除博客永久链接”插件。

in 3.0 there was a bug allowing you to remove this manually. 在3.0中,有一个错误允许您手动删除此错误。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM