{ 8 Intelligent Comments }

Can’t open www.gmail.com

gmail logo

Gmail URL Redirecting

When you enter the URL www.gmail.com or https://www.gmail.com or gmail.com into Internet Explorer you get an error page and the URL changes.

You have no problem accessing www.gmail.com from another computer such as your office or a friends.


  • You enter www.gmail.com into your browser and you get the error The page cannot be displayed
  • You enter www.gmail.com into your browser and the address changes to https:///?%20www.gmail.com or similar
  • You have no problem accessing your www.gmail.com from another computer
  • Trying to boot into Safe Mode results in a Blue Screen


The above is occurring due to a malicious infection of your operating system.

A virus and/or spyware has infected key files within the OS and is causing the url that you have entered such as www.gmail.com and possibly other url’s to be altered in an effort to redirect your browser.


Solution 1 – Fix your HOSTS file

Spyware may have altered your hosts file and as a result www.gmail.com is not displaying as it should.

Follow these steps to put it right.

  1. Click Start > Run
  2. Type c:\windows\system32\drivers\etc and click OK
  3. Locate the hosts file and double click it
  4. A helpful tip. If the file doesn’t open directly you will be prompted to ‘Open With’.
    Choose Notepad or WordPad and click OK

  5. Edit this file and sure the contents of the file is identical to the screenshot below. The only active line should be localhost
  6. You can ignore the first 17 lines as these are commented out with a pound/hash symbol
  7. Remove any other lines, Save & Close the file

hosts file...yours should look like this too

Solution 2 – Read Virus & Spyware Guide

If the step 1 above did not correct the problem then it’s likely that your browser has been hijacked by a virus or spyware threat.  Click Here for the Virus & Spyware guide.


Wow, 8 Comments! We've got a conversation going now. Join the discussion below!

  1. saeidpty says:

    Hi dears.I live in Iran.I need to your help.could you please tell me why i can not connect to the gmail??
    thanks alot

  2. Anonymous says:

    Great! Deleting the other lines worked right away. Thanks!

    1. bhuwan says:

      Thanks lot dude it is very friendly repair process for beginner likes me thanks again

  3. Liz says:

    I have the same problem but with a mac so I can’t follow the instructions. Gmail and google will open periodically, but frequently will not load. There is no error message, just a loading time out.

  4. Mike T says:

    This worked for me, just delete the other lines and problem solved. Thank you, this problem has been bugging me for quite some time now.

  5. it doesn’t works……cannot find the above script under etc…

    it says the below:

    ## Copyright (c) 1993-2001 Microsoft Corp.
    # This file has been automatically generated for use by Microsoft Internet
    # Connection Sharing. It contains the mappings of IP addresses to host names
    # for the home network. Please do not make changes to the HOSTS.ICS file.
    # Any changes may result in a loss of connectivity between machines on the
    # local network.

  6. hany says:

    i m from China ,and my office can not connect to gmail website this days.
    i have checked the hosts files, it may as same as your sample, but it doesn’t worked also.

  7. Hi there! Would you mind if I share your blog with my facebook group?

    There’s a lot of folks that I think would really appreciate your content.
    Please let me know. Many thanks

Leave a Reply