The edit page now displays within the main site.
Using the mod_rewrite=no seems a bit inelegant to me, but after 5 days I guess I can't complain.
Only downside is that now when you click the "Save Changes" button, the stupid thing just seems to refresh the edit page and doesn't end up saving anything at all. I don't know if that's a rewrite issue though -- I'll have to tinker later.
Thanks for the help.
EDIT: On second thought, maybe if I just make the rewrite rule ignore anything that has "&action=submit" ? That way it will temporarily transfer control to mediawiki's submit code, which I believe automatically redirects to the saved page after it's done (which the rewrite rules we already have would take care of)...
EDIT #2: Okay I think I got it. I added this line:
- Code: Select all
RewriteCond %{QUERY_STRING} !^(.*&)action=submit(&.*)?$ [NC]
and now it saves properly.
Phew!