My http://localhost/ redirecting to www.localhost.com

后端 未结 9 1054
离开以前
离开以前 2021-01-08 00:13

I checked my httpd.conf file and nothing found anything, let me know other areas whr i need to look.

Although my other links are working fine like --

相关标签:
9条回答
  • 2021-01-08 01:15

    Solved for me by this: first I understood other browsers in my system work fine with http://localhost then I cleared my main browser cache It worked

    ................ Of course Samlam 's replay is the answer satisfied the questioner But I answered this here because of question title. Most of guys have same problem as I do and they are referred to this page.

    0 讨论(0)
  • 2021-01-08 01:16

    I had the same issue, remember to clear your browser cache after making changes.

    0 讨论(0)
  • 2021-01-08 01:16

    Are you by any chance using chrome? Because chrome is not good about this kind of stuff sometimes, try different browsers, if that duos not help..

    Then you MUST have a .htaccess file somewhere in your www directory.

    try searching for it. It is an unusual file, it duos not have name just an extension.

    try searching like %.htaccess

    if that duos not help go to C:\Windows\System32\Drivers\etc and open the file hosts as a admin so you can edit it and look up if some program inserted something inside.

    ALSO

    Just remembered a situation i had earlier. Some .php files can have redirects in them. Check your index.php or main.php or index.phtml or some other extenson if they do a redirect, becouse it could be somone wrote a code to redirect the script.

    see this example to understand it bether: WWW to non-WWW Redirect with PHP

    0 讨论(0)
提交回复
热议问题