WordPress.org

Ready to get started?Download WordPress

Forums

Creating a Network problem please help. (7 posts)

  1. mariantaiwan
    Member
    Posted 1 year ago #

    i have purchased a domain and a webspace, i want to host 3 different websites with one domain, by seperating them into different subfolders.

    i looked up on the Codex and found "Create a Network" tutorial. i followed it and edited wp-config and .htaccess as instructed, but now i can't log into wp-admin.

    when i type in http://www.marian.com.tw/wp-admin it redirects to this werid URL
    http://www.marian.com.tw/wp-login.php?redirect_to=http%3A%2F%2Fwww.marian.com.tw%2Fwp-admin%2F&reauth=1

    i think the .htaccess is incorrect. how may i fix this?

    the .htaccess i have right now is
    'RewriteEngine On
    RewriteBase //www.marian.com.tw/
    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).*) home/marianco/public_html/$2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ home/marianco/public_html/$2 [L]
    RewriteRule . index.php [L]'

    and for the wp-config i added

    '/* Multisite */
    define('MULTISITE', true);
    define('SUBDOMAIN_INSTALL', false);
    define('DOMAIN_CURRENT_SITE', 'www.marian.com.tw');
    define('PATH_CURRENT_SITE', '//www.marian.com.tw/');
    define('SITE_ID_CURRENT_SITE', 1);
    define('BLOG_ID_CURRENT_SITE', 1);'

    i can't log into my wp-admin no more. what's the problem?

  2. mariantaiwan
    Member
    Posted 1 year ago #

    in addition, i get this error message when i try to click any of my links on the website.

    Internal Server Error

    The server encountered an internal error or misconfiguration and was unable to complete your request.

    Please contact the server administrator, webmaster@marian.com.tw and inform them of the time the error occurred, and anything you might have done that may have caused the error.

    More information about this error may be available in the server error log.

    Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.

  3. mariantaiwan
    Member
    Posted 1 year ago #

    my website runs fine if i don't do the multisite function, what's the best solution to host 3 wordpress sites on a single web space besides this?

  4. mariantaiwan
    Member
    Posted 1 year ago #

    now when i do http://www.marian.com.tw/wp-admin it redirect the URL to
    http://www.marian.com.tw//www.marian.com.tw/wp-admin/

    how can i fix this?

  5. Sandra l***
    Member
    Posted 1 year ago #

    This was the right behaviour:

    when i type in http://www.marian.com.tw/wp-admin it redirects to this werid URL
    http://www.marian.com.tw/wp-login.php?redirect_to=http%3A%2F%2Fwww.marian.com.tw%2Fwp-admin%2F&reauth=1

    What did you do in the meantime?

  6. derrick_w
    Member
    Posted 1 year ago #

    You only need WP Network if your 3 websites will be developed using WP. Otherwise just use subdomains with your hosting to run separate websites.

    State with URLs how you see the public accessing your 3 websites.

    Confirm server errors caused by .htaccess by temporarily renaming it.

    WP Network Admin dashboard->Settings->Network Setup actually recommends RewriteBase //www.marian.com.tw/ in .htaccess ??
    try RewriteBase /
    And Settings->Network Setup actually recommends
    define('PATH_CURRENT_SITE', '//www.marian.com.tw/'); in wp-config.php ??
    try define('PATH_CURRENT_SITE', '/');

    If you post some path info it might be helpful, as in the
    webserver's document root folder for http://www.marian.com.tw/
    Is it home/marianco/public_html?

  7. This is what's wrong: RewriteBase //www.marian.com.tw/

    Remove it and make it JUST RewriteBase /

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.