[CentOS] apache rewrite
Paul Heinlein
heinlein at madboa.comTue Aug 17 17:48:21 UTC 2010
- Previous message: [CentOS] apache rewrite
- Next message: [CentOS] apache rewrite
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Tue, 17 Aug 2010, Craig White wrote: > Is there some easy way to rewrite just the base URL to another URL but > leave all other URL's unmolested? > > i.e. > > http://www.example.com = rewrite to another URL > > http://www.example.com/files = deliver from the assigned subdirectory RedirectMatch permanent '^/[/]*$' http://your.other/url/ The more typical regex is '^/$', but I've found that matching otherwise meaningless trailing slashes isn't a bad idea. -- Paul Heinlein <> heinlein at madboa.com <> http://www.madboa.com/
- Previous message: [CentOS] apache rewrite
- Next message: [CentOS] apache rewrite
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the CentOS mailing list