Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hello all,
I have a problem getting my domain to do the right redirect.
My main domain should be https://www.domain.com.
I'm using Unoeuro for hosting and have made a http -> https 301 from their tool, and that works fine.
http://www.domain.com -> https://www.domain.com WORKS http://domain.com -> https://www.domain.com WORKS https://domain.com -> https://www.domain.com FAILS
Any suggestion to resolve this issue?
Hi Henrik,
Add the following to your web.config file located at the root level of your website:
<system.webServer> <rewrite> <rules> <rule name="HTTP to HTTPS redirect" stopProcessing="true"> <match url="(.*)" /> <conditions> <add input="{HTTPS}" pattern="off" ignoreCase="true" /> </conditions> <action type="Redirect" redirectType="Permanent" url="https://{HTTP_HOST}/{R:1}" /> </rule> </rules> </rewrite> </system.webServer>
That's not working for me :/ still just get the "This site can’t be reached" error.
I've also tried to deactivating the redirects from unoeuro's page, but that doesn't solved the problem.
Your web host may not have IIS redirect tool installed. You should check that this feature is available, if its not they may have an alternative method, since you have mentioned they have a tool for 301 redirects.
Cheers,
Marc
I have access to the IIS manager for my solution
I resolved the issue by disabling the unoeuro redirects, resetting the dns, and then use the webconfig practice. thx ;)
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Redirect from https non www to https www
Hello all,
I have a problem getting my domain to do the right redirect.
My main domain should be https://www.domain.com.
I'm using Unoeuro for hosting and have made a http -> https 301 from their tool, and that works fine.
http://www.domain.com -> https://www.domain.com WORKS http://domain.com -> https://www.domain.com WORKS https://domain.com -> https://www.domain.com FAILS
Any suggestion to resolve this issue?
Hi Henrik,
Add the following to your web.config file located at the root level of your website:
That's not working for me :/ still just get the "This site can’t be reached" error.
I've also tried to deactivating the redirects from unoeuro's page, but that doesn't solved the problem.
Hi Henrik,
Your web host may not have IIS redirect tool installed. You should check that this feature is available, if its not they may have an alternative method, since you have mentioned they have a tool for 301 redirects.
Cheers,
Marc
I have access to the IIS manager for my solution
I resolved the issue by disabling the unoeuro redirects, resetting the dns, and then use the webconfig practice. thx ;)
is working on a reply...