The MU forums have moved to WordPress.org

Bad htaccess conflict in MP MU (7 posts)

  1. thelaw
    Member
    Posted 17 years ago #

    I am using Kayako's help desk - one of the most popular PHP based helpdesks. Installing WP MU in the root directory causes a direct conflict:

    The WP MU htaccess file contains the following:

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

    ===============================

    The problem is that in the Kayako directory there is a directory called "files." In fact, in many scripts there are directories called "files." This htaccess command will cause access problems in all the other subdirectories apparently. Is anyone more familiar with this area that might suggest a better workaround for WP MU?

  2. VentureMaker
    Member
    Posted 17 years ago #

    If you need WPMU in root - then install Kayako in subdirectory. Or vise versa :)

  3. thelaw
    Member
    Posted 17 years ago #

    Kayako IS in a subdirectory. The problem with the Wordpress htaccess file is that it disrupts any subdirectory that contains a directory called "files" in it.

  4. thelaw
    Member
    Posted 17 years ago #

    And the problem with Kayako's Help Desk is that their copy protection is SO rigid that you can't even move your install from a subdirectory to a subdomain for the domain name you have a license. Bleah... have to request a subdomain license to see if this even will work...

  5. cafespain
    Member
    Posted 17 years ago #

    Change the .htaccess for WPMU so that it only looks for files at (.*)?\.mysite.com/files/
    But don't take that as a working htaccess rule, as it may not be and could mess up your site.

  6. thelaw
    Member
    Posted 17 years ago #

    cafespain - thanks for the assistance. It works for now but I will have to add extras for the multidomain i was hoping to add - perhaps not. The other solution I heard is to get another account set up on whm in order to run it apart from wordpress. Not a great solution but that is one of them. Thanks again.

  7. cafespain
    Member
    Posted 17 years ago #

    Thinking about it you could explicitly exclude your help desk software instead.
    RewriteCond %{REQUEST_URI} !^helpdesk.mysite.com/files/(.*)$
    RewriteRule ^(.*/)?files/(.*) wp-content/blogs.php?file=$2 [L]

    Again, above might not work as I'm not 100% up on the ole htaccess rules.

About this Topic

  • Started 17 years ago by thelaw
  • Latest reply from cafespain