WordPress.org

Forums

After multi-site setup comments and links don't work (17 posts)

  1. ngentile
    Member
    Posted 3 years ago #

    Ok, So i took the plunge and upgraded my site to multi-site. I am using the URL 706backup.com. I am hosting this on my own server using abyss web server.

    All of the content system seems to be working fine. As the admin I can add pages, post comments, add users, add sites, etc. the problem is that all of the links on each of the given pages whether its a comment link, link to previous post, calendar links, etc do not work and my server pops up a 404 error. I am using sub domains and I have my host configuration setup properly through godaddy. I can get to each of the new sites I created via their sub domain from anywhere. The main page of each site loads correctly and I can see everything I have posted from the admin area but if I select a link on the page (any link) it gives me a 404. My assumption is that I have the folders of my web server setup incorrectly for multi-site. But I really can't figure out where after peeling through the setup again.

    706backup.com - main site (original site)
    test.706backup.com - second site
    wtf.706backup.com - third test site

    Any help would be appreciated. Thanks in advance!

  2. What's in your .htaccess?

  3. ngentile
    Member
    Posted 3 years ago #

    This is in the root directory of my 706backup.com directory. All the other sites are subdomain sites under this one.

    *****************************************************

    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. If you're using subdomains, the CORRECT .htaccess is

    # BEGIN WordPress
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    
    # uploaded files
    RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L]
    
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule . index.php [L]
    # END WordPress
  5. ngentile
    Member
    Posted 3 years ago #

    Ok, I updated my htaccess file with what you suggested and dropped it into the root directory. No change. What else should I do?

  6. Can you get into the admin ends? test.706backup.com/wp-admin?

    If so, try resaving permalinks.

  7. ngentile
    Member
    Posted 3 years ago #

    Yes, I can get into the admin area of each site. I am the sole user/admin and am able to do anything and everything in the dashboard for each site. I don't know what you mean by resaving permalinks. How do I do this?

  8. ngentile
    Member
    Posted 3 years ago #

    ok, I just found it. Sorry about the hasty reply.

    Ok, at the moment the permalink structure is set to custom, which I don't remember doing. Below is what is in the blank.

    /%year%/%monthnum%/%day%/%postname%/

    If I remember correctly I used the default format upon the original install. Example - http://706backup.com/?p=123

    I know some permalinks structures cannot be used in a sub-domain or sub-directory setup.

  9. Do you know how to change permalinks?

    Go to the Settings → Permalinks panel and click save.

  10. ngentile
    Member
    Posted 3 years ago #

    We posted at the same time. Read above reply before the following message

    ----------------

    Updated the permalinks by selecting save again and actually going back to the main dashboard for 706backup.com and did the same. No difference. What's next?

  11. ngentile
    Member
    Posted 3 years ago #

    Ok,

    I think i fixed it. I changed the permalink setting just for the test.706backup.com site and all the links seem to be working. I changed the link structure to http://test.706backup.com/index.php/2011/06/13/sample-post/

    If I update all of the sites with this permalink structure do you think there will be any problems this might create with multi-site? Thanks alot for your help on this!

  12. That should work BUT the fact that you have to put index.php in there means your server is set up .... weirdly. You're probably going to run into other errors :/

  13. 'Powered by Abyss Web Server X2"

    does that even support the use of htaccess?

  14. ngentile
    Member
    Posted 3 years ago #

    the thing is that I didn't even put that in there. the script auto populated the fields.

    Abyss does not support htaccess but it does support alot of security features.

    I really don't want to change servers as I have been using abyss for 7 years and it supports a gammit of the features I use daily for server administration.

    Is there anyway around the index.php in the permalink? I'll update the permalink structure and see what happens.

  15. Abyss does not support htaccess

    Then you're in for a world of hurt. The index.php is there because the .htaccess isn't working. So ... whatever alternative you've got to it, you need to sort it out :/

  16. ngentile
    Member
    Posted 3 years ago #

    Thanks for the info.....

    I'm just a little confused as to why its a problem. Everything is working, but you seem to be an expert because you helped me get this far, what issues could this create? I appreciate your help.

  17. It's more that if you later came back and said you were getting weird results with images/css/links, I would nod and go 'Yeah, expected that.' I don't know WHAT will go wrong, but I'm pretty sure anything that relies on .htaccess MAY go weird.

Topic Closed

This topic has been closed to new replies.

About this Topic