WordPress.org

Ready to get started?Download WordPress

Forums

500 Internal Server Error on site admin (5 posts)

  1. besfortmehmeti
    Member
    Posted 1 year ago #

    My wordpress is installed on subdomain and i chose to use subdirectory for my sites. the structure is
    wordpress installation: http://wordpress.example.com
    and sites: http://wordpress.example.com/site1

    When i login to network admin its seen that are right installation but when i want to access sites admin than a get error 500 Internal Server Error.

    I have .htaccess :

    RewriteEngine On
    RewriteBase /
    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).*) wp/$2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ wp/$2 [L]
    RewriteRule . index.php [L]

    and wp-config.php:

    define('MULTISITE', true);
    define('SUBDOMAIN_INSTALL', true);
    define('DOMAIN_CURRENT_SITE', 'wordpress.example.com');
    define('PATH_CURRENT_SITE', '/');
    define('SITE_ID_CURRENT_SITE', 1);
    define('BLOG_ID_CURRENT_SITE', 1);

    Can anyone tell me is where is the problem

  2. If you're using a subfolder install (which is what we call it when you have domain.com/site2) then you should have this:

    define('SUBDOMAIN_INSTALL', false);

  3. unick69
    Member
    Posted 1 year ago #

    I actually have the same problem...

    I have this setup

    http://www.maindomain.com (independant wordpress install -working perfectly)

    subdomain.maindomain.com/site1 (second independant wordpress install setup as network and using subfolders)

    wp-config.php is properly configured... I can see everything on subdomain.maindomain.com/wp-admin. everything is fine here

    but the 500 error code gets triggered when I try to go on the dashboard of subdomain.maindomain.com/site1 --- the front end works but the CSS is not loading.

    Error log on server shows no error on this.

    any other clue where the problem could be?

    thanks

  4. unick69
    Member
    Posted 1 year ago #

    okay I got it working... it was a .htaccess issue

    I used the one provided by the wordpress install but for some reason there was something wrong

    I changed this

    RewriteEngine On
    RewriteBase /
    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).*) featured/$2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ featured/$2 [L]
    RewriteRule . index.php [L]

    to this

    RewriteEngine On
    RewriteBase /
    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]

    notice how the featured is removed... "featured" was the subdomain name.

    hope this can be useful to others :)

  5. tjmarsh (Arvixe)
    Member
    Posted 1 year ago #

    Thanks for the Information! It helps everyone!

Topic Closed

This topic has been closed to new replies.

About this Topic