Help With mod_rewrite exception

Help With mod_rewrite exception

Posted by: timhaughton
Posted on: 2008-09-07 23:45:00

Hi, I have subversion setup on my domain as so...

www.mydomain.com/svn

It was working fine until I installed Joomla in the domain's root, and turned on mod-rewrite for SEF URLs. Now I can't access the SVN. DH support have suggested that I need to create an exception within the .htaccess for the svn folder.

Can anyone tell me how to do it?

Cheers,

Tim

Re: Help With mod_rewrite exception

Posted by: sdayman
Posted on: 2008-09-08 05:59:00

Try this wiki article. It applies to /stats, but it says to add some lines at the beginning of .htaccess to intercept calls to /stats.

http://wiki.dreamhost.com/Making_stats_accessible_with_htaccess

-Scott

Re: Help With mod_rewrite exception

Posted by: timhaughton
Posted on: 2008-09-08 23:19:00

Thanks, that helped.

For future Googlers, I added this to my .htaccess:

## My stuff.
RewriteCond %{REQUEST_URI} ^/stats/(.*)$ [OR]
RewriteCond %{REQUEST_URI} ^/failed_auth.html$
RewriteRule ^.*$ - [L]

RewriteCond %{REQUEST_URI} ^/svn/(.*)$
RewriteRule ^.*$ - [L]


This fixes the svn folder, and also the stats folder, which was also broken.

Thanks for the pointer.

T

Tags: rewritesubversionhtaccesscheersurls