The MU forums have moved to WordPress.org

How to Exempt Redirection for Certain Directories (4 posts)

  1. webmacster87
    Member
    Posted 14 years ago #

    I've got WordPress MU installed in the root of my site's hosting. (Maybe that's dumb, but it's what seemed to make sense.) I am using WPMU in the subdomain setup (http://blog.example.com). However, I am also needing to set up a separate directory on the same site, independent of WPMU, that I need to be able to access the old-fashioned way (http://example.com/directory/). However, whenever I try to access it, I find myself redirected back to the WPMU homepage at http://example.com.

    Is there any way to disable this kind of redirection for certain directories on my server?

    If it helps, here is the contents of my .htaccess file:

    RewriteEngine On
    RewriteBase /
    
    #uploaded files
    RewriteRule ^(.*/)?files/$ index.php [L]
    RewriteCond %{REQUEST_URI} !.*wp-content/plugins.*
    RewriteRule ^(.*/)?files/(.*) wp-content/blogs.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>

    Thanks for any help and advice you can offer.

  2. webmacster87
    Member
    Posted 14 years ago #

    Sorry to bump, but I still really need assistance with this.

  3. webmacster87
    Member
    Posted 14 years ago #

    Think I figured out the issue. Apparently directories that have their permissions altered don't work, and I had changed the CHMOD to 777 in order to install MediaWiki on the same server (but in a different directory) as WPMU. Turns out changing the wiki's directory to CHMOD 755 worked fine.

    Anyway I'm pretty sure this is resolved.

  4. bortkopplad
    Member
    Posted 14 years ago #

    Wow, that was a weird one. :)

    Thanks for the post anyway, good to know in case I ever experience anything similar...

About this Topic

  • Started 14 years ago by webmacster87
  • Latest reply from bortkopplad