Quantcast
Channel: Topic Tag: error 500 | WordPress.org
Viewing all articles
Browse latest Browse all 1704

tluongsi on "500 Server Error - Network Setup for Multisite - localhost"

$
0
0

Hi,

Sorry if this has already been asked before, but I did a search on the forum and couldn't find an answer. If it exists, please direct me to the correct post.

I have been successful in setting up Wordpress locally (localhost) up to the step where I added to the wp-config.php the following lines:

define('WP_ALLOW_MULTISITE', true);

I logged in successfully and under "Tools" I have a new menu "Network Setup".

As instructed, I copied and paste the following codes to my wp-config.php file:

define('MULTISITE', true);
define('SUBDOMAIN_INSTALL', false);
define('DOMAIN_CURRENT_SITE', 'localhost');
define('PATH_CURRENT_SITE', '/wordpress/');
define('SITE_ID_CURRENT_SITE', 1);
define('BLOG_ID_CURRENT_SITE', 1);

above "/* That's all, stop editing! Happy blogging. */", and the following codes to my .htaccess file:

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]

replacing all other codes.

I then clicked on login and receive the 500 Error message. I tried shortening the second line to:

RewriteBase /

as I saw it that way on some tutorials, but still receive the 500 Error message.

I deleted the codes I added to wp-config.php, replaced .htaccess with a backup I made, which is as follows:

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress

I then was able to login. I tried re-copying and re-pasting the above codes to the wp-config.php and .htaccess files again several times, and always received the 500 Error message. Can't find out what I did wrong.

I'm on Windows 10, Firefox 42.0 if it matters. I can sent a log if that helps.

Thank you for your help.


Viewing all articles
Browse latest Browse all 1704

Trending Articles