Redirect from http: to https:

by 5 replies
6
How do I create a redirect so that may http:// website forwards to a secure https:// website?
#website design #http #https #redirect
  • Search the Web and learn about .htaccess file
    • [ 1 ] Thanks
    • [1] reply
    • place this into your .htaccess

      Code:
      RewriteEngine On
      RewriteCond %{HTTPS} !on
      RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
      • [ 1 ] Thanks
  • [DELETED]
  • [DELETED]
  • Well, you can go through this info IIS7 Redirect HTTP to HTTPS I hope this will help for you.
  • did you paid for that HTTPS ?
    if you did try this one

    IIS7 Redirect HTTP to HTTPS
    • [1] reply
    • 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
  • [DELETED]

Next Topics on Trending Feed