Link to home
Start Free TrialLog in
Avatar of vituxa
vituxa

asked on

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

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.
Avatar of Brad Groux
Brad Groux
Flag of United States of America image

Avatar of vituxa
vituxa

ASKER

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!
SOLUTION
Avatar of Brad Groux
Brad Groux
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of vituxa

ASKER

I am asking for help with either direct instructions or a code sample. PLease help me. I cannot figure this out.
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of vituxa

ASKER

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