在里面Settings > General
将WordPress地址(URL)更改为http://business.com/cms
和网站地址(URL)到http://business.com
.
这个index.php
根目录中的文件(not in cms/ directory)
<?php
/**
* Front to the WordPress application. This file doesn\'t do anything, but loads
* wp-blog-header.php which does and tells WordPress to load the theme.
*
* @package WordPress
*/
/**
* Tells WordPress to load the WordPress theme and output it.
*
* @var bool
*/
define(\'WP_USE_THEMES\', true);
/** Loads the WordPress Environment and Template */
require(\'./cms/wp-blog-header.php\');
然后移动
cms/config.php
在根目录中
config.php
.而且还要移动。htaccess自
cms/
根目录。
查找以下行(如果存在)
RewriteBase /cms/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /cms/index.php [L]
并删除
cms/
字符串,这样就可以得到以下结果
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
如果出了什么问题,请告诉我。