klimero April 12, 2011 at 21:20:54 Specs: Windows XP
How do I redirect the visits to a specific homepage (web site) to access a "sub" page in the same domain? Is it possible to use the Hosts file to do this? I want redirect visits to www.whatever.com to ok.whatever.com.
Um just reassign the IP for ok.whatever.com to www.whatever.com in the host file. Not sure what you are asking. By the way this is not a good thing to do and some antiviruses will flag this action. Why are you trying to do this?
I think the best place to do this would be in your DNS server. Just modify the Host record for www.whatever.com to the new IP this way you do not need to modify everyone's host file.
Thanks for your reply ACE_Omega. The idea is to block the homepage of a site but there is an "internal" page that I want the users to go instead of the homepage. I don't control the DNS and I just have Admin access to the 3 machines I want to do the change. What I want is to have these 3 PCs to access "CompanyX.JobsPostingSite.com" every time they look for the homepage "www.JobsPostingSite.com", without being dependent of what web browser they use (machines have Firefox, IE, and Chrome installed). Both pages are in the same server (same IP address).
Yes, the problem is the IP address is the same and when the user types the homepage will get it instead of being redirected to the specific page I want. I think is not possible with Hosts file because the Browser sends the URL page requested (homepage) in the packet, so the Web Server will send back the specific page.
The information on Computing.Net is the opinions of its users. Such
opinions may not be accurate and they are to be used at your own risk.
Computing.Net cannot verify the validity of the statements made on this
site. Computing.Net and Purch hereby disclaim all responsibility
and liability for the content of Computing.Net and its accuracy.