Re: svn/url redirect question
From: Ryan Schmidt <subversion-2011a_at_ryandesign.com>
Date: Sat, 12 Mar 2011 16:42:28 -0600
On Mar 12, 2011, at 16:11, bruce wrote:
> I've got a test svn/apache setup. The location block is:
SVNListParentPath is not applicable unless you are using SVNParentPath (to host multiple repositories); you're not; you're using SVNPath (to host a single repository).
> From the cmdline, the complete list of projects can be accessed via:
Well, that would list the contents of the CollegeRoot folder in the apps folder in the trunk folder of your repository. If that's where you've decided you're going to put all your projects, then that's a correct statement.
Note that file:///-protocol URLs should only be used for testing purposes. For production use, use a Subversion server, either svnserve or apache with mod_dav_svn.
> A single project folder/files can be seen/accessed via
...the aforementioned projects, yes.
> However, I'd like to have a way for the user to simply enter something
If you want the projects in the repository at the paths you've indicated above, then I don't think you're going to accomplish using these shorter URLs, sorry. You cannot use mod_rewrite with Subversion; Subversion clients do not follow redirects. If you ONLY care about these shorter URLs working in a web browser, and DO NOT care about them working in a Subversion client, then you could use mod_rewrite or RedirectMatch to do it.
This is an archived mail posted to the Subversion Users mailing list.