We help IT Professionals succeed at work.

In DotnetNuke I made a website secure(https), and now it gives a 302 response code first, and then redirects to https

643 Views
Last Modified: 2014-08-31
Running a DNN website. Made the entire website https instead of http. Now the first response code it gives me is 302. I need it to be 301 for the SEO purposes.
Do I do it in code? or in IIS? Cannot figure it out.
PLease tell me step-by-step how to implement that.
Comment
Watch Question

Author

Commented:
PLease tell me how to write a rule in IIS

I added this rule in the IIS and it still 302s:
<rule name="[my 301 to 302]" stopProcessing="true">
            <match url="http://(.*)$" ignoreCase="true" />
            <action type="Redirect" url="https://{R:1}" redirectType="Permanent" />
          </rule>

Open in new window


PLease help!
Brad GrouxSenior Manager (Wintel Engineering)
Commented:
This problem has been solved!
(Unlock this solution with a 7-day Free Trial)
UNLOCK SOLUTION

Author

Commented:
I am asking for help with either direct instructions or a code sample. PLease help me. I cannot figure this out.
Commented:
This problem has been solved!
(Unlock this solution with a 7-day Free Trial)
UNLOCK SOLUTION

Author

Commented:
My answer is the ACTUAL solution to the problem. Brad provided resources.