Redirect from http: to https:

5 replies
  • WEB DESIGN
  • |
How do I create a redirect so that may http:// website forwards to a secure https:// website?
#http #https #redirect
  • Profile picture of the author Istvan Horvath
    Search the Web and learn about .htaccess file
    Signature

    {{ DiscussionBoard.errors[8914562].message }}
    • Profile picture of the author crams
      place this into your .htaccess

      Code:
      RewriteEngine On
      RewriteCond %{HTTPS} !on
      RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
      {{ DiscussionBoard.errors[8914593].message }}
  • Profile picture of the author logoonlinepros1
    Well, you can go through this info IIS7 Redirect HTTP to HTTPS I hope this will help for you.
    Signature
    {{ DiscussionBoard.errors[8915431].message }}
  • Profile picture of the author getnewonline
    did you paid for that HTTPS ?
    if you did try this one

    IIS7 Redirect HTTP to HTTPS
    {{ DiscussionBoard.errors[8916103].message }}
    • Profile picture of the author CKTaylor7
      Thank you for the coding help on this one.

      I have another issue with this site. I currently have a 301 redirect in an .htaccess file to handle the canonical error issue.

      Does adding this code conflict with that and if so, how do I handle both?

      Thanks again
      {{ DiscussionBoard.errors[8962488].message }}

Trending Topics