httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matus UHLAR - fantomas <uh...@fantomas.sk>
Subject Re: [users@httpd] apache redirect
Date Tue, 04 Sep 2007 14:51:19 GMT
On 04.09.07 00:44, Mandy Singh wrote:
> I would like to learn how to redirect a subdomain on my website back to the
> parent site once again.

> My main site is: www.example.com
> I created subdomain.example.com
> 
> Now I want that when user types subdomain.example.com in the url bar it
> goes to www.example.com
> 
> Want to learn 2 things -
> 1) Redirection without url bar url getting unchanged

just add subdomain.example.com to ServerAlias list, no need for redirection

> 2) Redirection with url also getting changed to www.example.com

create another virtualhost:

ServerName subdomain.example.com
Redirect / http://www.example.com/

-- 
Matus UHLAR - fantomas, uhlar@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.
Micro$oft random number generator: 0, 0, 0, 4.33e+67, 0, 0, 0...

---------------------------------------------------------------------
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-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message