HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Server Operation (http://www.howtoforge.com/forums/forumdisplay.php?f=5)
-   -   Apache Web Forwaring (http://www.howtoforge.com/forums/showthread.php?t=4348)

mattbrown 16th May 2006 22:45

Apache Web Forwaring
 
Hi
Ive been trying to find out about redirecting urls with apache but getting a bit confused

basically i have www.mydomain.com which points to the ip of my web server per normal, now some other people want to use sub omains ie something.mydomain.com etc etc so i make a new A record for something.mydomain.com which points to my apache server.

Now when somebody goes to this address i want apache to redirect them somewhere else just like somebody like 123reg would (framed). at present i overcome this by adding a virtual server for the domain then adding a php file to the virtual servers document root and getting it to send a new header but this is surely not the best way to go about this and in turn also changes the url in the users browser

falko 17th May 2006 16:42

Do you want the subdomains to point to the same web space as the main domain?


All times are GMT +2. The time now is 23:22.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.