View Single Post
  #2  
Old 26th October 2010, 13:19
Steveorevo Steveorevo is offline
Member
 
Join Date: Feb 2010
Posts: 33
Thanks: 6
Thanked 6 Times in 5 Posts
Default Additional fix for WordPress

Hey Guys, I just wanted to followup as I've been having new problems crop up with WordPress. Alot of clients use WebDAV and WordPress with its 'Permalinks' feature. It does this by using .htaccess rules. I noticed that cPanel clients don't have a problem but ISPConfig does.

Apparently cPanel creates a whole new sub-domain for webdav services webdav.yoursite.com (not a fan) with <Directory> directives of "AllowOverride None" to prevent even reading .htaccess.

In ISPConfig this won't work, as adding <directory> directives would then break WordPress's permalinks, and the <Location> directives parse after reading .htaccess (again, which is how WordPress does permalinks).

I found that to eliminate this problem, just add the line "Rewrite engine off" to the fix I had above. This will allow popular WordPress users with permalinks + WebDAV to work seamlessly. Sure beats having to login into WordPress's control panel, and then toggle permalinks on/off everytime one needs to upload a new file.

So the new fix would look like this:

# Fix for PHP WebDAV
<IfModule mod_dav.c>
<Location /webdav>
php_value engine off
Rewrite engine off
</Location>


Regards,
Steve

Last edited by Steveorevo; 26th October 2010 at 13:25.
Reply With Quote