Jump to content

Query related to redirect from HTTP to HTTPS?


matthewjohn938

Recommended Posts

  • 1 year later...
  • 2 years later...

edit your web server's settings or the.htaccess file.

Redirect HTTP to HTTPS: You can use server-side redirects to redirect all HTTP traffic to HTTPS. 

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

server {
    listen 80;
    server_name example.com;
    return 301 https://$host$request_uri;

you should be good to go with redirection with this data

Avtrix Software Solutions

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...