?
Solved

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

Posted on 2014-08-25
6
Medium Priority
?
506 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.
0
Comment
Question by:vituxa
  • 4
  • 2
6 Comments
 
LVL 14

Expert Comment

by:Brad Groux
ID: 40283337
0
 
LVL 1

Author Comment

by:vituxa
ID: 40284100
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!
0
 
LVL 14

Assisted Solution

by:Brad Groux
Brad Groux earned 2000 total points
ID: 40284129
0
Transaction-level recovery for Oracle database

Veeam Explore for Oracle delivers low RTOs and RPOs with agentless transaction log backup and transaction-level recovery of Oracle databases. You can restore the database to a precise point in time, even to a specific transaction.

 
LVL 1

Author Comment

by:vituxa
ID: 40284150
I am asking for help with either direct instructions or a code sample. PLease help me. I cannot figure this out.
0
 
LVL 1

Accepted Solution

by:
vituxa earned 0 total points
ID: 40285662
Brad thank you for trying. The below is what I was looking for:


<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>

Open in new window

0
 
LVL 1

Author Closing Comment

by:vituxa
ID: 40295264
My answer is the ACTUAL solution to the problem. Brad provided resources.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
Lync server 2013 or Skype for business Backup Service Error ID 4049 – After File Share Migration
Loops Section Overview
When cloud platforms entered the scene, users and companies jumped on board to take advantage of the many benefits, like the ability to work and connect with company information from various locations. What many didn't foresee was the increased risk…
Suggested Courses

862 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question