Moodle and Wordpress fix

Moodle and Wordpress fix

E. L. Cooper -
回帖数:4

After tearing my hair out all weekend with a client site www.siteneame.com/moodle I learned something about wordpress and moodle. Wordpress rewrites rules in the .htaccess file in public_html that interfere with a moodle install.  Moodle was not designed to work in a subdirectory of a wordpress install.  

The workaround is to place another .htaccess file in the base directory of the moodle install with the line RewriteEngine Off.

I have no idea if this is known by others but I did not find it documented here in a forum search.

平均分:Useful (1)
回复E. L. Cooper

Re: Moodle and Wordpress fix

Patrick Malley -
I've done this before. What you're describing is something like this:

Wordpress at:

http://moodle.org

And, Moodle at:

http://moodle.org/moodle/

Then, the Wordpress rewrites will interfere with your Moodle directory. Therefore, you have to turn RewriteEngine off in the Moodle directory.

Took me a couple weeks to figure this one out myself. Good information to have around!
回复Patrick Malley

Re: Moodle and Wordpress fix

E. L. Cooper -
Right www.wordpresssite.com/moodle would be the relative paths. I just could not find a stitch of documentation on it and to tell you the truth I did not realize the main site was wordpress at first since I never looked at it.
回复E. L. Cooper

Re: Moodle and Wordpress fix

Jorge Blanco -
Thanks, I didn't know about that. What kind of problems does it cause? Does it create 404 errors or what? I don't know what kind of rewrite is wordpress doing...