WordPress MU and Moodle
-
I have had a Moodle installation running in a subfolder for a couple of years and just started getting 404 errors when we try to add links, video, etc. via the editor after I installed WordPress MU. I have traced it to the WordPress installation hijacking the folder /files/.
I have tried fixing it following the suggestion in this Moodle forum post without any luck:
https://moodle.org/mod/forum/discuss.php?d=153265
And a search here hasn’t turned up any fixes.
I added a line to the htaccess file but it hasn’t fixed it.
Any suggestions on how I can fix this?
Thanks!
Here is the .htaccess file in my WordPress installation:
RewriteEngine On
RewriteBase /components/com_wp4j/wordpress/
RewriteRule ^index\.php$ – [L]# uploaded files
RewriteCond %{REQUEST_URI} !.*online-learning-center/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).*) $2 [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
RewriteRule . index.php [L]
- The topic ‘WordPress MU and Moodle’ is closed to new replies.