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

后端 未结 9 1125
离开以前
离开以前 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: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

提交回复
热议问题