I have a production site www.mysite.com and a development site dev.mysite.com. The two sites are served from different folders and use different IIS configurations. When I browse the beta site, on its web server, it works as expected, but on my local machine and iPad, it instantly redirects me to www.beta.mysite.com. There’s no way to force it to use beta.site.com even if I edit the URL in the bar.
I used redirectcheck.com to perform a redirect trace and there’s an initial load of the site and then it issues a 301. I eventually found had inserted a browser redirect to the URL and I deleted the entries and checked it again:
http://beta.mysite.com HTTP/1.1 301 Moved Permanently Location: https://beta.mysite.com/
05:21:52 GMT; path=/; samesite=lax; httponly
Strict-Transport-Security: Strict-Transport-Security: max-age=86400; includeSubDomains
Date: Fri, 05 Mar 2021 05:21:51 GMT
When I test it using chrome dev tools, however, with the caching turned off and I still get the following:
* Request URmysite: https://beta.mysite.com/ * Request Method: GET * Status Code: 301 Moved Permanently * Remote Address: xx.xx.xx.xx:443 * Referrer Policy: strict-origin-when-cross-origin * Response Headersview source * Date: Fri, 05 Mar 2021 05:26:49 GMT * Location: https://www.beta.mysite.com/ * Server: Microsoft-IIS/10.0 * Strict-Transport-Security: max-age=15768000; includeSubDomains * Transfer-Encoding: chunked * X-Powered-By: ASP.NET * X-Powered-By-Plesk: PleskWin * Request Headersview source * Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9 * Accept-Encoding: gzip, deflate, br * Accept-Language: en-US,en;q=0.9 * Cache-Control: no-cache * Connection: keep-alive * Host: beta.mysite.com * Pragma: no-cache * Sec-Fetch-Dest: document * Sec-Fetch-Mode: navigate * Sec-Fetch-Site: none * Sec-Fetch-User: ?1 * Upgrade-Insecure-Requests: 1 * User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 11_2_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.182 Safari/537.36 Edg/88.0.705.81
Any suggestions for where else to look?