WordPress.org

Ready to get started?Download WordPress

Forums

new network of sites install sub-sites not working (9 posts)

  1. robwillis
    Member
    Posted 3 years ago #

    Hello,

    First off, please forgive me if any of my terminology is incorrect... and thanks so much for your time.

    Fresh install of wp, activated network of sites, added the blogs.dir directory, made the modification to wp-admin and to .htaccess.

    At completion, I could browse to the main page of the primary site, clicking on the sample post in chrome to view it throws....

    Oops! This link appears to be broken.

    A bit of surfing suggested re-saving the permalink settings, did so, and now the main site pages are working fine.

    Added a new site to the sites collection.

    Try to view the site (by clicking sites, hovering on the subsite name, and clicking view... this problem isn't a typo), and I get that same "Oops! This link appears to be broken." error. To get a bit more descriptive error, I tried it in Firefox, and the error is 404-not found.

    I'm fairly well at a loss of where to go from here, and am looking for a bit of help.

    The site is located at 184.106.113.85 for now.

    Thank you,

    Rob

  2. robwillis
    Member
    Posted 3 years ago #

    Quick addition...

    the subsite that I'm trying to run is located at ...

    http://184.106.113.85/test2

    Thanks again.

  3. It's most likely becasue the site URL is an IP address.

    Otherwise, it may be becasue the htaccess file is not being read by the web server.

  4. robwillis
    Member
    Posted 3 years ago #

    Andrea,

    Thanks... was noticing the amount of effort you personally put into WP and responding to users questions, and you have my sincere respect. I'm working under the assumption that the .htaccess file is being read because rewriting the permalinks solved the issue for the main site, is this a foolish assumption?

    I'm unclear why the ipaddress would be an issue... can you enlighten me just a bit? I have the domain running right now with the current website, and was hoping to get this all working and then just change the two settings in WP and repoint the domain, am I being naive?

    If it is merely an issue of the ipaddress, I can live with that, and when I repoint the domain, I can set up the "sub-sites" after it's at the domain.

    Rob

  5. SubDOMAIN sites will never work with the ip address. SubFOLDER should.

    I'm working under the assumption that the .htaccess file is being read because rewriting the permalinks solved the issue for the main site, is this a foolish assumption?

    No, that's totally reasonable :) But is it the RIGHT .htaccess for MultiSite? What is it?

  6. robwillis
    Member
    Posted 3 years ago #

    Ipstenu,

    Respect to you as well, for all the support you give to users...

    Here is the complete .htaccess file. Thank you kindly for your help.

    Rob

    # BEGIN WordPress
    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]
    # END WordPress

  7. That looks good... there's nothing else in it? I wonder if it's checking for a sitename somewhere in there. :/ May need to appeal to smarter people.

  8. robwillis
    Member
    Posted 3 years ago #

    Ipstenu,

    No sir, nothing else. That is the sum total of the .htaccess file.
    Wondering about what Andrea mentioned about the URL being replaced by an IP address...

    Thinking out loud (but too stupid about .htaccess to do anything but frame the question)...

    Could it be that the rules that .htaccess is defining only work for a text expression, as opposed to a numeric one? If that is the case, then all is good, I'll finish out my migration, repoint DNS and then build the sub sites.

    If however it is not the case, it would be a huge waste of time that I can't afford right now (we are in the week before we begin the school year, and time is of the essence)... hence my asking for help.

    Open to anyone's ideas at all, and again, I sincerely appreciate your time.

  9. No idea on that, but really I'd start with the domain name in there if you can. It eliminates one potential issue, and then it fixes the other issues you haven't encountered yet. ;)

    Switching over to a domain after building it out involved updating the URL in... a bajillion places in the db. every site has it saved in multiple spots.

Topic Closed

This topic has been closed to new replies.

About this Topic