WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] New Installs are Broken (9 posts)

  1. adam4jmj
    Member
    Posted 1 year ago #

    I have activated multisite using a Linux, Godaddy shared hosting environment. The htaccess and wp_config files are set up correctly. I followed the install exactly as it was laid out using folders instead of subdomains.

    When I add a new site the dashboard for that site appears, but all links in the dashboard are to the main site instead of the child site (ie. http://www.website.com instead of http://www.website.com/childsite1/

    When I type in the site manually the theme is present but it has an error 404 page.

    1. http://streetevangelization.org/lansing/wp-admin/ appears to work and the site appears in my network list (an email with my username and password is sent too), however it is connected to all of the posts and pages from the main site, instead of its own posts and pages.
    2. http://streetevangelization.org/lansing/ does not appear to work correctly.
    3. http://streetevangelization.org/ words fine.

  2. What's in your .htaccess and what did you add to the wp-config?

  3. adam4jmj
    Member
    Posted 1 year ago #

    wp-config.php

    /* Multisite */
    define('WP_ALLOW_MULTISITE', true);
    define('MULTISITE', true);
    define('SUBDOMAIN_INSTALL', false);
    $base = '/';
    define('DOMAIN_CURRENT_SITE', 'streetevangelization.org');
    define('PATH_CURRENT_SITE', '/');
    define('SITE_ID_CURRENT_SITE', 1);
    define('BLOG_ID_CURRENT_SITE', 1);

    .htaccess

    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    
    # uploaded files
    RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [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).*) $1 [L]
    RewriteRule  ^[_0-9a-zA-Z-]+/(.*\.php)$ $1 [L]
    RewriteRule . index.php [L]
  4. esmi
    Forum Moderator
    Posted 1 year ago #

    Never, EVER, post login details on a public forum! You have just given the rest of the world full access to your database. Change your database username and password NOW.

  5. adam4jmj
    Member
    Posted 1 year ago #

    ok.

  6. Don't bump.

    You may need to ask goDaddy for help on this, since if you set everything up correctly, there's no reason the subfolder should be redirecting to your main site unless there's another .htaccess rule pushing things around.

  7. adam4jmj
    Member
    Posted 1 year ago #

    Godaddy had no idea what I was talking about. Support just said that there is "no subfolder for streetevangelization.com/template/" so that is why it redirects to the root URL.

    He suggested the only way to get multiple wordpress sites to work on Godaddy is to create my own subfolders and do a fresh install each time.

  8. adam4jmj
    Member
    Posted 1 year ago #

    When I create a new site:

    1. http://streetevangelization.com/template/wp-admin/ works
    2. http://streetevangelization.com/template redirects to http://streetevangelzation.com/
    3. http://streetevangelization.com/wp-admin/network/site-info.php?id=8 works correctly.
    4. All links in the admin to edit or go to the new 'template' site do not work. They all link to http://streetevangelization.com instead of http://streetevangelization.com/template/

  9. adam4jmj
    Member
    Posted 1 year ago #

    Okay, I just discovered something fascinating.

    1. I had edited the .htaccess file to default to the theme "responsive"
    2. When I deleted that line and made a new network site, it worked.
    3. If I activated the responsive theme, it broke everything again and reverted to the original problem I had.
    4. If I tried to change it back to WP's default theme, it wouldn't do it.

    So it seems as long as you do not use responsive as a theme, you can create network sites.

    I wonder why that is.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags