Note that there are some explanatory texts on larger screens.

plurals
  1. POHow can I convince mod_rewrite to stay away from my Subversion repositories?
    primarykey
    data
    text
    <p>I have a site [hosted on DreamHost], using WordPress for the main content, but Subversion repositories in <a href="http://mysite/svn" rel="nofollow noreferrer">http://mysite/svn</a> .</p> <p>My file layout is:</p> <pre><code>webroot/ blog # wordrpress files .htaccess </code></pre> <p>My SVN repositories lay outside the web root, but they are correctly mapped to /svn/repository URLs.</p> <p>When I put the WordPress permalink rewrite rules in my .htaccess file, the blog pages and permalinks work great, but it breaks Subversion.</p> <p>This is my .htaccess file with everything extraneous removed:</p> <pre><code>RewriteEngine On RewriteBase / # try 1 #RewriteCond %{REQUEST_URI} svn [NC] #RewriteRule . - [PT,L] # try 2 #RewriteRule ^svn.* - [PT,L] # try 3 #RewriteCond %{REQUEST_URI} !^svn RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . blog/index.php [L] </code></pre> <p>The very last line breaks Subversion. Clients errors are like this:</p> <pre><code>$ svn ls https://mysite/svn/myrepo/ svn: PROPFIND request failed on '/svn' svn: PROPFIND of '/svn': 405 Method Not Allowed (https://mysite) </code></pre> <p>If I comment out that last line, <code>RewriteRule . blog/index.php</code>, Subversion works. But having WordPress handle the the nice permalink stuff doesn't.</p> <p>I tried the three "ignore any URL starting with 'svn'" approaches I've commented out above, and none work-- they seem to not do ANYTHING. With or without the PT pass-through flag.</p> <p>I have googled quite a bit and it seems others have been stumped with mod_rewrite and WebDAV (which Subversion uses) stepping on each other. I found <a href="https://stackoverflow.com/questions/163302/">an extremely similar abandoned SO question here too</a>, but no working solutions. Any clues?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload