Forums

[resolved] Multisite Installation 404 Error (11 posts)

  1. triharder
    Member
    Posted 10 months ago #

    hello, my apologies if this has been resolved elsewhere but I simply can't find a solution to this.

    Here's a quick break-down of my situation:

    • I've installed WP Multisite (3.2.1) at racejournals.com.
    • created sub-directory installation
    • .htaccess edited alright and has 666 permissions
    • permalinks not really edited

    The problem I'm running into is that I just get page not found errors no matter what page or site I go to...The homepage works just fine but as soon as I try to navigate from there the server can't seem to find the page.

    Here's my htaccess for your reference. I have a feeling it might be something to do with this:

    \\<IfModule mod_rewrite>
    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]

    </IfModule>\\

    Any help you can offer will be greatly appreciated!!

  2. Andrea_r
    team pirate
    Posted 10 months ago #

    Looks like the server isn't even reading the htaccess file.

    - is it on the same folder as wp-config.php?
    - did you spell it right? ;) Its .htaccess and is a hidden file.
    - is mod_rewrite enabled on the server? Did custom/pretty permalinks work before you enabled multisite?

  3. triharder
    Member
    Posted 10 months ago #

    Hi Andrea,

    THank you very much for your response.

    - Yes, it's in the same folder
    - Yes, I didn't create the file. I just edited the one that was there
    - Yes, mod_rewrite is enabled as far as I know. I have 2 other wordpress (singlesite however) installations on the same server.
    - I didn't test a different permalink structure before enabling multisite so I'm not sure.

    Could it be my plug ins? I'm going to disable them all now and will post back if I have any luck. If not, I hope you might have another suggestion!

  4. triharder
    Member
    Posted 10 months ago #

    Interesting update that may help you help me.

    I changed the permalinks back to default and everything works. Does this mean there's an issue with my .htaccess file?

    Looking forward to a response!

  5. Ipstenu
    Half-Elf Support Rogue & Mod
    Posted 10 months ago #

    It means your server isn't reading your .htaccess file correctly. Check your httpd.conf file and make sure AllowOverride is set to ALL

  6. triharder
    Member
    Posted 10 months ago #

    Hmm, I see, thanks for the update Ipstenu.

    I'll have to email hostgator support to get them to update it. Looks like I don't have access to it with my hosting. Will that be an issue I wonder? I guess we'll see...

    I'll let you know if that sorts it out

  7. Andrea_r
    team pirate
    Posted 10 months ago #

    No, you do not have access to change this on a shared host.

    My guess is this WP install is not in the root of your web account, correct? Like an add on domain?

  8. triharder
    Member
    Posted 10 months ago #

    Ok, so I emailed hostgator and they said the httpd.conf file is already set to AllowOverride...

    They did mention the following though:

    Our servers fully support mod_rewrite. If you could give some examples of which rewrite rules aren't working properly (and to where they should properly redirect) we would be glad to help you get it straightened out.

    And yes, Andrea, this install is an add-on domain. Not the primary domain on the account. Should I switch it to the primary account to remedy this?

  9. Andrea_r
    team pirate
    Posted 10 months ago #

    Just confirming my theory that it's the add-on domains that usually fail in reading the htaccess files properly.

    Feel free to tell them the same htaccess rules, generated by wordpress (not written by you, thus no need for them to troubleshoot) work in the primary domain but not in the add on domain.

  10. triharder
    Member
    Posted 10 months ago #

    Hey guys, I just wanted to say thanks for all the help.

    Hostgator was EXTREMELY helpful and took it into their own hands to edit my htaccess file. They said they changed it to the following and now it works:

    # 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

    I would recommend Hostgator for anyone looking for WordPress hosting. They were just awesome.

  11. Ipstenu
    Half-Elf Support Rogue & Mod
    Posted 10 months ago #

    Yes, but don't do affiliate links, please and thank you ;)

    Also ... that .htaccess is the same as what you had. So they didn't change that at all. Betcha they fixed the httpd.conf file on the QT.

Reply

You must log in to post.

About this Topic