Lanwench
Thu Mar 27 09:36:35 PDT 2008
Haseeb <haseeb.mahmud@gmail.com> 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...@heybuddy.donotsendme.unsolicitedmailatyahoo.com> wrote:
>> Eric <E...@discussions.microsoft.com> wrote:
>>> If you are entering
http://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.