Re: apache redirect

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxx ; 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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux