apache - wordpress redirect for Multisite not working -
aim : moving multisite wordpress installation localhost
environment: lampp on ubuntu 10.4.
i moving mutlisite wordpress installation localhost. steps have completed:
recreated db using backup sql file. copied folders , files server , kept under htdocs. using newly generated wp-config.php, when tried install mutlisite, asked add together next 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);
i have added next in .htaccess:
rewriteengine on rewritebase /wordpress/ rewriterule ^index\.php$ - [l] # add together trailing slash /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]
while access site url http://localhost/wordpress
, taken http://localhost/wordpress/wordpress/
, error message stating firefox has detected server redirecting request address in way never complete
.
please help me set correctly.
ps: new wordpress.
these lines
define('domain_current_site', 'localhost/wordpress'); define('path_current_site', '/wordpress/');`
must be:
define('domain_current_site', 'localhost'); define('path_current_site', '/wordpress/');
wordpress apache redirect wpmu
No comments:
Post a Comment