On 14.06.10 11:56, Tapas Mishra wrote:
> I have 5 websites running on a webserver.
> I read Apache docs Apache serves the vhost file in alphabetical order
> of name of vhost file.
> 
> I have a few subdomains on main domain
> 
> http://mydomain.com
> 
> as follows
> http://site1.mydomain.com
> http://site2.mydomain.com
> http://site3.mydomain.com
> http://site4.mydomain.com
> 
> in one of them which is served by default I want to redirect to
> correct http://mydomain.com
> so I added in http://site1.mydomain.com
> 
> the ReWriteRule in vhost of site1.mydomain.com as follows

why rewrite rule when you can issue redirect by redirect directive?

Redirect / http://sice.mydomain.com/

(note the trailing slash, it should be there)

-- 
Matus UHLAR - fantomas, uh...@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
REALITY.SYS corrupted. Press any key to reboot Universe.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org

Reply via email to