Can't access subdomain only subfolder (3 posts)

  1. datbrah
    Posted 3 years ago #

    hello can you please tell me why I can't access site1.domainname.com
    I made subfolder called site1 and I can enter only with domainname.com/site1 which I don't want also how can I go to domainname.com/home without typing that "home".

    # BEGIN WordPress
    RewriteEngine On
    RewriteBase /domains/domainname.com/home/
    RewriteRule ^index\.php$ - [L]
    # uploaded files
    RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?siteN/files/(.+) wp-content/blogs.dir/N/files/$2 [L]
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule . index.php [L]
    # END WordPress
    define('MULTISITE', true);
    define('SUBDOMAIN_INSTALL', true);
    $base = '/domains/domainname.com/';
    define('DOMAIN_CURRENT_SITE', 'domainname.com');
    define('PATH_CURRENT_SITE', '/domains/domainname.com/');
    define('SITE_ID_CURRENT_SITE', 1);
    define('BLOG_ID_CURRENT_SITE', 1);
  2. Maruti Mohanty
    Posted 3 years ago #

    For solutions for the domain based url please check http://codex.wordpress.org/Before_You_Create_A_Network#Server_Requirements
    if you have the above requirements.

    To have a static home page you need to change the setting from the admin.
    The path is
    Dashboard/Setting/Reading/Front page diaplays

    Hope this help :)

  3. I made subfolder called site1 and I can enter only with domainname.com/site1

    You didn't actually make a subfolder, did you? You juyst made a subfolder site, right?

    Also that base config stuff looks weird...

    Where is WP installed? /domains/domainname.com/home/ isn't what you see from the front end, it's just domainname.com, so you should just have / as your $base and ReWriteBase

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.