• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

ssl and 301redirect for idiots like me

New Here ,
Jan 03, 2019 Jan 03, 2019

Copy link to clipboard

Copied

I purchased and activated and ssl certificate for my site.  They said I had one more step:

"

301 Redirect

To complete the SSL certificate process another step is required. The secure SSL requires a 301 redirect which creates an encrypted connection between the visitor and your site.

Can you tell me how to do that, while assuming the last solid coding I did was in APL back in the 70's?

Thank you.

peace

pgm

Views

330

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Jan 04, 2019 Jan 04, 2019

Does your web host give you a c-Panel to work with?  Often that's where you make changes to the server's .htaccess file.

How to edit your .htaccess

Votes

Translate

Translate
Community Expert ,
Jan 03, 2019 Jan 03, 2019

Copy link to clipboard

Copied

It probably means to set up a 301 redirect in htaccess file to make sure if a non https request is made its redirected to https

RewriteCond %{HTTPS} !on

RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301]

Let me know if you need more help

Paul-M - Community Expert

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 03, 2019 Jan 03, 2019

Copy link to clipboard

Copied

Even better is probably to make sure all requests are on https and www with something like this:

#FORCE HTTPS AND WWW.

RewriteCond %{HTTPS} off [OR]

RewriteCond %{HTTP_HOST} !^www\. [NC]

RewriteCond %{HTTP_HOST} ^(?:www\.)?(.+)$ [NC]

RewriteRule ^ https://www.%1%{REQUEST_URI} [R=301]

It will help prevent canonical issues with www. and non www URLs

Paul-M - Community Expert

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 04, 2019 Jan 04, 2019

Copy link to clipboard

Copied

Does your web host give you a c-Panel to work with?  Often that's where you make changes to the server's .htaccess file.

How to edit your .htaccess

Nancy O'Shea— Product User, Community Expert & Moderator
Alt-Web Design & Publishing ~ Web : Print : Graphics : Media

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 04, 2019 Jan 04, 2019

Copy link to clipboard

Copied

LATEST

It may be an idea to find out what type of server that you are dealing with. The other two replies assume that you are hosting your site on an Apache server, but if it happens to be a Windows server, you will need to make the changes in web.config. If the server is an NGINX box, the changes will have to be made in the Plesk Panel as per

Wappler, the only real Dreamweaver alternative.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines