Re: Redirecting in browsers
- From: "Lanwench [MVP - Exchange]" <lanwench@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 27 Mar 2008 12:36:35 -0400
Haseeb <haseeb.mahmud@xxxxxxxxx> wrote:
thanks to everyone for their replies.
first, i had a plan to do this in the host file.
for example,
if i add this line in the host file
127.0.0.1 <space> www.google.com
the it will redirect the browser to my own pc if i enter google.com in
my browsers address bar.
so, my idea was to write
www.google.com/news <space> www.google.com
in the host file so that the typed address will redirected to /news
site.
however, this is not working. :-(
No - it won't work, sorry. That's not what a hosts file is for. It maps
names (not URLs) to IP addresses. It knows nothing of web hosting, etc. Nor
does DNS.
On Mar 27, 2:19 pm, "Lanwench [MVP - Exchange]"
<lanwe...@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
Eric <E...@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
If you are enteringhttp://www.google.com/and you are going to the
http://www.google.com/newspage there could be an entry in the hosts
file that is instructing the browser to go to the news page instead
of the main search engine page.
To find out, enter hosts in the Search -> All files and folders and
enter hosts (nothing else) in the search box with your C: drive
selected.
Choose to open the hosts file with notepad. Have a look for any
entry that can perform the redirection.
Hi - hosts files can't do that - nor can DNS. And I think the OP
wants to do the redirection, not *stop* it.
Eric -http://www.pcbuyerbeware.co.uk/
"Haseeb" wrote:
i want to type google.com in the address bar and the browser will
redirect me to the google.com/news site. is it possible ?
thanks in advance.
.
- References:
- Redirecting in browsers
- From: Haseeb
- RE: Redirecting in browsers
- From: Eric
- Re: Redirecting in browsers
- From: Lanwench [MVP - Exchange]
- Re: Redirecting in browsers
- From: Haseeb
- Redirecting in browsers
- Prev by Date: RE: what is cnpacnp.dll???
- Next by Date: Re: Generic USB mouse and Keyboard not recognized
- Previous by thread: Re: Redirecting in browsers
- Next by thread: Re: Redirecting in browsers
- Index(es):
Relevant Pages
|