• Resolved Restless Web

    (@triharder)


    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!!

Viewing 10 replies - 1 through 10 (of 10 total)
  • 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?

    Thread Starter Restless Web

    (@triharder)

    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!

    Thread Starter Restless Web

    (@triharder)

    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!

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

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

    Thread Starter Restless Web

    (@triharder)

    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

    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?

    Thread Starter Restless Web

    (@triharder)

    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?

    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.

    Thread Starter Restless Web

    (@triharder)

    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.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    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.

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘Multisite Installation 404 Error’ is closed to new replies.