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.
Do I do it in code? or in IIS? Cannot figure it out.
PLease tell me step-by-step how to implement that.
ASKER
PLease tell me how to write a rule in IIS
I added this rule in the IIS and it still 302s:
PLease help!
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>
PLease help!
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
My answer is the ACTUAL solution to the problem. Brad provided resources.
Then utilize it to setup a URL Rewrite - http://www.iis.net/downloads/microsoft/url-rewrite
This blog post explains it - http://blogs.iis.net/carlosag/archive/2009/06/11/redirects-301-302-and-iis-seo-toolkit.aspx
Additional resource if needed - http://blog.pluralsight.com/iis7-redirect-windows-server-2008