Re: Redirecting in browsers

Tech-Archive recommends: Fix windows errors by optimizing your registry



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.



.



Relevant Pages

  • Re: Redirecting in browsers
    ... i had a plan to do this in the host file. ... file that is instructing the browser to go to the news page instead ... of the main search engine page. ... redirect me to the google.com/news site. ...
    (microsoft.public.windowsxp.general)
  • Re: [OT] server side script
    ... I found if you use the HOST file to redirect 'this' addresss, ... LFS ...
    (microsoft.public.vb.general.discussion)
  • Re: Need to Change Hosts File Redirect - Detailed Help
    ... Host File redirect whenever I log onto any webpage. ... If I change the extension to 'All Files' and click on the file ... Obviously it's something with the path and filename, but I have no clue at ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: [OT] server side script
    ... I found if you use the HOST file to redirect 'this' addresss, ... LFS ...
    (microsoft.public.vb.general.discussion)
  • Re: Use of Host File vs. IE Restricted Zone?
    ... ones designed to attack a machine using a browser. ... that HOST file is more than controlling WEb site ... to access the Website. ... then the O/S is going to connect to www.microsoft.com. ...
    (comp.security.firewalls)