Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

301 redirect error in all browsers with www prefix on site #205

Open
TristanRhodes opened this issue Jun 30, 2015 · 2 comments
Open

301 redirect error in all browsers with www prefix on site #205

TristanRhodes opened this issue Jun 30, 2015 · 2 comments

Comments

@TristanRhodes
Copy link

I've found a problem with the redirect from www. prefixed domains. It seems to fail in every browser. I get a 301 redirect but it comes back with a Corrupted Content Error.

I'm running in a shared hosted enviroment, which might affect things, but the www domain worked with the blogengine.net before I upgraded. Note that the site non www. url works fine, this is just a problem from the redirect from www.

Url: http://www.tristan-rhodes.co.uk/

Request headers:
GET / HTTP/1.1
Host: www.tristan-rhodes.co.uk
User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Firefox/38.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8
Accept-Language: en-GB,en;q=0.5
Accept-Encoding: gzip, deflate
Connection: keep-alive

Response headers:
HTTP/1.1 301 Moved Permanently
Content-Type: text/html; charset=UTF-8
Location: http://tristan-rhodes.co.uk:80:109.203.96.6/
Server: Microsoft-IIS/7.0
content-security-policy: object-src 'none';
Arr-Disable-Session-Affinity: True
Date: Tue, 30 Jun 2015 19:32:51 GMT
Content-Length: 167

Content:
"Reload the page to get source for: http://www.tristan-rhodes.co.uk/"

The string length is 67, so i'm not sure where the 167 length came from.

(Here's where someone points out that I am announcing a glaring server flaw.... :D )

@justinrouleau
Copy link

Did you ever find a solution to this?

I'm experiencing the exact same issue.

http://stackoverflow.com/questions/34140967/iis-8-5-url-rewrite-issue-redirect-location-includes-ip-address

@TristanRhodes
Copy link
Author

Hi justin.
I didn't find a general solution, but you can override the redirect url in the config with the url you wanted.
This just meant that my .com url now redirectsto co.uk.
I will respond to your SO question as well.
Tristan

Sent from Yahoo Mail on Android

On Mon, 7 Dec, 2015 at 19:55, [email protected] wrote:
Did you ever find a solution to this?

I'm experiencing the exact same issue.

http://stackoverflow.com/questions/34140967/iis-8-5-url-rewrite-issue-redirect-location-includes-ip-address


Reply to this email directly or view it on GitHub.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants