Forums

500 Internal Server Error on site admin (2 posts)

  1. besfortmehmeti
    Member
    Posted 3 months 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);

Reply

You must log in to post.

About this Topic