WordPress multisite installation broke menu links

I am using the Thesis theme with my WordPress multisite installation. I also changed the permalink settings from the Super Admin settings to remove /blog/ from the path.

But now my menu links are broken. The permalink structure now is /%postname%/ and my pages have the links mydomain.com/about/, mydomain.com/contact/ etc.

Read More

When I try and navigate to these pages, it gives me a 404 error.

Can someone please help me out on how to resolve this issue?

Thanks.

Some additional info

I checked the error logs and don’t understand why the following log statements show up when I try to access the pages (if this helps in resolving the issue)

[Thu Mar 10 12:29:18 2011] [error] [client xxx.xxx.71.55] File does not exist: /var/www/html/about, referer: http://mydomain.com/
[Thu Mar 10 12:32:44 2011] [error] [client xxx.xxx.71.55] File does not exist: /var/www/html/contact, referer: http://mydomain.com/

Shouldn’t it be looking for the files in the wp-content/themes/thesis folder?

ADDITIONAL INFO

The content of the .htaccess is here (is the same as that in Network Settings)

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]

Also, I am using the steps here for using Thesis with multisite installation

Related posts

Leave a Reply

4 comments

  1. This seems like a broken .htaccess-file. I too have removed /blog/ as the permalink path, but it had/should have no major impact on the use of the site. The error-log is correct, as WordPress by default opens mydomain.com/about/, and then places the page-content in the style of the theme.

    I would say there are two highly possible reasons:

    • .htaccess is broke, you could either error-check it yourself, or post the content here if you are unsure how it works.
    • The Thesis theme does something “unusual” to the default functionality of WordPress (ie. forcing permalink structures, .htaccess configurations or alternate methods for content retrieval). You could check this by testing your site with the default (Twentyten) theme.

    EDIT:

    From the beginning of installing WPMS (WordPress Multisite), you are told to do three things:

    1. Create a blogs.dir in /wp-content/
    2. Paste some code in your wp-config.php
    3. Paste some code in your .htaccess

    (all this code is seen at Network Admin -> Settings -> Network Setup). That covers the standard WPMU installation, but at least in my experience does not create a working domain-mapping. So in addition to the Vanilla WPMU-install, I followed Otto’s tutorial on WPMS 3.0 Domain Mapping.

    One of the important things in this tutorial, is the installation of two plugins: Domain-mapping and Sunrise. Both are actually remnants of WPMU (before Multisite was integrated into WordPress), but are kept updated for the purposed of Domain-Mapping. I’m not actually sure whether WordPress by default has a working system for domain-mapping integrated in 3.1, but I am still dependent upon those two plugins for using domains with my WPMS.

  2. Are you testing the WordPress installation on your own server, or is it installed on a shared web host? I ask because I recently had a similar issue with a WordPress installation on my local development server. For me the issue was in my Apache configuration.

    If the WordPress install is on your server, make sure that the Apache module mod_rewrite is enabled. Additionally, make sure AllowOverride is set to All rather than None in your Apache configuration file, otherwise the rewrite rules in your .htaccess file will be ignored entirely.

    You can check out this post for more information, I apologize if this doesn’t apply to your situation!

  3. It’s worth saying that I recently encountered a problem where all links in my site began to 404 the solution turned out to be deleting the htaccess and remaking all the permalink settings. Have you tried that?