How to Redirect HTTPS non-www to HTTPS www


Prev Tutorial Next Tutorial

How to Redirect HTTPS non-www to HTTPS www using .htaccess

This code is tested on my own website sitesbay.com so you can try this code without any fear.

Redirect HTTPS non-www to HTTPS www using .htaccess

RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\. [NC,OR]
RewriteCond %{HTTPS} off
RewriteCond %{HTTP_HOST} ^(?:www\.)?(.+)$ [NC]
RewriteRule ^ https://www.%1%{REQUEST_URI} [R=301,L,NE]

Prev Tutorial Next Tutorial

Advertisements




Download Projects

Advertisements

FREE Online Google Play APK Downloader

Buy APP Installs, Buy 100% Genuine Installs