WordPressMU: Posts links lead to 404 error (16 posts)

  1. hypernayte
    Posted 5 years ago #

    Hello, all. I'm trying to set up Multisite with subdomains. The install goes fine and I'm able to enable the network (and Multisite also.)

    I can create new sites and can create entries for those sites. New posts show up on the blog's front page, but when I go to click on the actual blog's post link, I get a 404 error.

    Is this an Apache, dns, or some other issue? Is there more information that you guys would like me to provide to help you help me?

    Thanks for reading.

  2. hypernayte
    Posted 5 years ago #

    http://www.nelsonshack.com is the site in question, btw.

  3. What's your .htaccess?

  4. hypernayte
    Posted 5 years ago #

    Thanks for the response, Ipstenu. Here it is:

    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]

  5. What happens if you turn off pretty permalinks?

    (That's the correct htaccess for a subdomain install - Are you using that or subfolders?)

  6. It's Apache and mod_rewrite issues.

    Individual post links don't even work on your main site either. Did you put in the .htaccess file? Does the server have mod_rewrite enabled?

  7. hypernayte
    Posted 5 years ago #

    I have this in my httpd.conf:

    LoadModule rewrite_module libexec/apache22/mod_rewrite.so

    I put the .htaccess file in my /usr/local/www/apache22/data (documentroot)

    I'm using subdomains for this install.

  8. But by default apache sets up each vhost to have mod_rewrite disallowed. ;) Gotta turn it on.

  9. hypernayte
    Posted 5 years ago #

    Per this page,, I now have this in my nelsonshack.com v-host conf:

    <VirtualHost *:80>
        ServerAdmin nathan@nelsonshack.com
        DocumentRoot "/usr/local/www/apache22/data"
        Servername www.nelsonshack.com
        ServerAlias nelsonshack.com *.nelsonshack.com
        RewriteEngine On
        RewriteOptions Inherit

    Is that the correct way to enable mod_rewrite for each v-host?

  10. hypernayte
    Posted 5 years ago #

    Well, I'll be, ipstenu, you were right. Turned off permalinks and now it works. Thanks, buddy. Props.

  11. If it works sans permalinks then, as Andrea said, your .htaccess file isn't being read :)

    The problem is that without that working, MultiSite becomes a pile of steaming poo.

  12. Yeah, try logging in to the admin areas of the sub sites. :-/ bet they won't work.

    Is that the correct way to enable mod_rewrite for each v-host?

    # AllowOverride controls what directives may be placed in .htaccess files.
    # It can be "All", "None", or any combination of the keywords:
    #   Options FileInfo AuthConfig Limit
    AllowOverride FileInfo Options

    further reading

    http://is.gd/jczEO5 and htaccess http://is.gd/MGChRL

  13. hypernayte
    Posted 5 years ago #

    Well, actually I can get to http://bloodytoe.nelsonshack.com/wp-admin and log in and make changes, see posts, etc. Should I still go down the mod_rewrite route?

    Thanks, again.

  14. Huh.

    http://nelsonshack.com/ and http://bloodytoe.nelsonshack.com/ have the exact same posts. Is that intentional?

  15. hypernayte
    Posted 5 years ago #

    Ah...sorry. Yeah, Nelsonshack.com pulls in a few blogs through RSS. So ignore http://www.nelsonshack.com. Forgot to explain that.

  16. Okay :) Just wondering if that was indicative of the problem or not ;)

    Yes, I would still go down the mod_rewrite route. Also check into your allowoverride settings.

Topic Closed

This topic has been closed to new replies.

About this Topic