Sizus
BANNED
- Jul 4, 2015
- 376
- 331
I hope someone skilled in this can help me.
I use code below which I was told it should redirect all pages (homepage + inner pages) from http to https.
However it only redirects home page. My site is static html site with few pages only. Not Wordpress because I don't need it.
I don't want to switch to Wordpress because my site has great SERP position and I don't want to change its structure.
This is the code I'm using and it only works for homepage to redirect it to https.
Does anyone has some solution which can work for me, please?
I read tons of pages which I was googling and can't find working solution anywhere.
Regards,
Sizus
I use code below which I was told it should redirect all pages (homepage + inner pages) from http to https.
However it only redirects home page. My site is static html site with few pages only. Not Wordpress because I don't need it.
I don't want to switch to Wordpress because my site has great SERP position and I don't want to change its structure.
This is the code I'm using and it only works for homepage to redirect it to https.
Code:
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
Does anyone has some solution which can work for me, please?
I read tons of pages which I was googling and can't find working solution anywhere.
Regards,
Sizus