0
目标:将多站点WordPress安装移至本地主机wordpress重定向多站点无法正常工作
环境:Ubuntu 10.4上的LAMPP。
我正在将mutlisite wordpress安装到localhost。我已完成的步骤:
使用备份sql文件重新创建数据库。 从服务器复制所有文件夹和文件并保存在htdocs下。 现在用新生成的wp-config.php文件,当我试图安装一个mutlisite,有人问我以下内容添加到WP-config.php文件
define('MULTISITE', true);
define('SUBDOMAIN_INSTALL', false);
define('DOMAIN_CURRENT_SITE', 'localhost/wordpress');
define('PATH_CURRENT_SITE', '/wordpress/');
define('SITE_ID_CURRENT_SITE', 1);
define('BLOG_ID_CURRENT_SITE', 1);
我还增加了在.htaccess如下:
RewriteEngine On
RewriteBase /wordpress/
RewriteRule ^index\.php$ - [L]
# add a trailing slash to /wp-admin
RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule^- [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
RewriteRule . index.php [L]
当我访问我的网站的URL http://localhost/wordpress
,我被带到http://localhost/wordpress/wordpress/
,并得到错误信息,说明Firefox has detected that the server is redirecting the request for this address in a way that will never complete
。
请帮我设置正确。
PS:我是新来的Wordpress。
感谢您的答复。问题是我没有把'/ opt/lampp/htdocs'中的所有文件保存在'/ opt/lampp/htdocs/wordpress /'中。我想用他的子目录'wordpress'作为我的基地。无论如何,因为我没有得到任何来自wordpress论坛的帮助,我会尝试你的解决方案。再次感谢。 – Srihari 2013-02-15 13:19:30