Archive

Posts Tagged ‘rewritecond’

wordpress pretty permalinks redirect .htaccess breaks webdav – howto fix

April 8th, 2011 No comments

on a wordpress installation i had the problem that the redirect rules wordpress generates when you enable “pretty” permalinks broke my webdav functionality on the site. there is a simple fix to this problem. you just have to edit the .htaccess file wordpress generates as follows. to be honest i have no clue of rewrite rules and just copypasted this from another site i couldn’t find anymore. so use at your own risk.

## BEGIN WordPress


RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]


# END WordPress

change to:

# BEGIN WordPress


RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_METHOD} =GET
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]


# END WordPress