Apache Server configuration support - How do i rewrite subdirectory on domain to a different domain

This is Interesting: Free IT Magazines  
Home > Archive > Apache Server configuration support > February 2006 > How do i rewrite subdirectory on domain to a different domain





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author How do i rewrite subdirectory on domain to a different domain
merrittr@gmail.com

2006-02-13, 8:54 pm

Hi here is my question


I want

http://www.test.domain.com/epip

rewritten to

http://epip.domain.com

will this work?

RedirectMatch ^www.test.domain.com/epip/$ http://epip.domain.com

Anze

2006-02-13, 8:54 pm

> will this work?
>
> RedirectMatch ^www.test.domain.com/epip/$ http://epip.domain.com


I don't know, have you tried it?

If it doesn't, try this:

RewriteCond %{HTTP_HOST} ^www.test.domain.com$
RewriteRule ^.*$ http://epip.domain.com/$1 [L]

I haven't tested it though, but that would be my first shot at it.

Anze


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com