The MU forums have moved to WordPress.org

.htaccess issue? MU not going to correct subdomain (9 posts)

  1. russdyer
    Member
    Posted 13 years ago #

    I have WPMU install on the root directory and enter the admin like usual (e.g. "domain.com/wp-admin"). If I go to view my "Blogs" and choose the dashboard of another blog, it doesn't redirect to it. I only goes to "domain.com/wp-admin" instead of the "subdomain.domain.com/wp-admin" so I can't enter the backend.

    I must have messed up my .htaccess file? Here is my .htaccess:

    'RewriteEngine On
    RewriteBase /

    #uploaded files
    RewriteRule ^(.*/)?files/$ index.php [L]
    RewriteCond %{REQUEST_URI} !.*wp-content/plugins.*
    RewriteRule ^(.*/)?files/(.*) wp-includes/ms-files.php?file=$2 [L]

    # add a trailing slash to /wp-admin
    RewriteCond %{REQUEST_URI} ^.*/wp-admin$
    RewriteRule ^(.+)$ $1/ [R=301,L]

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule . - [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-.*) $2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
    RewriteRule . index.php [L]

    <IfModule mod_security.c>
    <Files async-upload.php>
    SecFilterEngine Off
    SecFilterScanPOST Off
    </Files>
    </IfModule>'

  2. russdyer
    Member
    Posted 13 years ago #


  3. tdjcbe
    Member
    Posted 13 years ago #

    Is this a new install? If so, did you follow the wildcard dns steps in the readme file?

  4. russdyer
    Member
    Posted 13 years ago #

    This all happened after upgrading to 3.0 and following the directions to change:

    RewriteRule ^(.*/)?files/(.*) wp-includes/ms-files.php?file=$2 [L]

    in the .htaccess file.

    After upgrading to 3.0, when I go to Super Admin --> Sites, the "Visit" link is going to the correct address, but the "Backend" link is only going to the "domain.com/wp-admin" instead of going to the backend of each blog, such as "blog1.domain.com/wp-admin".

  5. andrea_r
    Moderator
    Posted 13 years ago #

    Let me go double-check on a couple of my installs.

  6. andrea_r
    Moderator
    Posted 13 years ago #

    Are you using the domain mapping plugin?

  7. russdyer
    Member
    Posted 13 years ago #

    Yes, I am using the domain mapping plugin.

  8. tdjcbe
    Member
    Posted 13 years ago #

    What specifically did you use to edit the .htaccess file?

    Can you double check to see if the edit actually got saved? Sometimes the files generated by the webserver are not owned by the useraccount so your edit may have have been saved. In that case, you need to get your webhost to intervene.

  9. russdyer
    Member
    Posted 13 years ago #

    Got it fixed. Thanks andrea_r.

About this Topic

  • Started 13 years ago by russdyer
  • Latest reply from russdyer