Changing Site URLs From HTTP To HTTPS
1
post-template-default,single,single-post,postid-1,single-format-standard,bridge-core-2.0.7,ajax_fade,page_not_loaded,,qode_grid_1300,qode-child-theme-ver-1.0.0,qode-theme-ver-19.4,qode-theme-bridge,disabled_footer_bottom,wpb-js-composer js-comp-ver-6.1,vc_responsive,elementor-default

Changing Site URLs From HTTP To HTTPS

Changing Site URLs From HTTP To HTTPS

We usually face issue when we install SSL certificate and google starts mentioning duplicate records in website. Actually, website will become accessible using http as well as non-http url, confusing google and other SEO checking sites making them feel like duplicate records.

Solution in Joomla:

Two steps are required for fixing this issue.

  1. Open admin area, click on System -> Global Configurations. Open “Server” tab. Select ‘Force Https’ to ‘Entire Site’.
  2. Next step is a file level change. Open .htaccess file and add two lines of code and you are done. here is the code:

RewriteEngine On

RewriteCond %{HTTP_HOST} ^yoursitename.com [NC]
RewriteRule ^(.*)$ https://www. yoursitename.com /$1 [L,R=301,NC]

Don’t forget to change yoursitename.com with your site name

What does these two lines say:

Very simple, condition says, if this url found replace it will rule mentioned in second line.

 

1 Comment
  • A WordPress Commenter
    Posted at 05:28h, 25 February

    Hi, this is a comment.
    To get started with moderating, editing, and deleting comments, please visit the Comments screen in the dashboard.
    Commenter avatars come from Gravatar.

Post A Comment