The MU forums have moved to WordPress.org

.htaccess help with MU and Moodle (2 posts)

  1. emerinea
    Member
    Posted 14 years ago #

    I have MU installed in my root directory and Moodle installed in a subdirectory. They seem to be interfering with each other. MU works fine. I keep getting Internal Server Error 500 when I click on a browse button in my Moodle install. Here's the .htaccess script. Any suggestions?

    # Use PHP5 as default
    AddHandler application/x-httpd-php5s .php
    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>

  2. gerikg
    Member
    Posted 14 years ago #

    for my server I have to add

    AddType x-mapp-php5 .php
    AddHandler x-mapp-php5 .php

About this Topic