
Htaccess, the right way to enable HTTPS (on www site)?
There are a lot of tutorials on the Internet, but some of them seem to be outdated and don't meet good SEO practices.
The scenario is the following one:
My site has Cloudflare enabled
My site has a valid SSL on server-side
The current htaccess of my site:
RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} ^MYSITE\.cl$ RewriteRule ^(.*) http://www.MYSITE.cl/$1 [R=301] RewriteRule ^/?find$ find.php [L] RewriteRule ^/?do$ do.php [L] ErrorDocument 404 /404.html Options -Indexes |
#OLD PART RewriteEngine On RewriteBase / # Non-www to www (NEW PART) RewriteCond %{HTTP_HOST} !^www\. RewriteRule (.*) https://www.%{HTTP_HOST}/$1 [R=301,L] # Non-SSL to SSL (NEW PART) RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}/$1 [R=301,L] #OLD PART AGAIN RewriteRule ^/?find$ find.php [L] RewriteRule ^/?do$ do.php [L] ErrorDocument 404 /404.html Options -Indexes |

-
whitehat -
Thanks - Reply
SignatureBCA Social Profile{{ DiscussionBoard.errors[11349785].message }} -
-
colorado1850 -
[ 2 ] Thanks - Reply
Signature4-Step System Shows How to Make Money From ANY Affiliate Product...Without Actually Promoting It{{ DiscussionBoard.errors[11349807].message }} -
-
danoce -
[ 1 ] Thanks - Reply
{{ DiscussionBoard.errors[11349914].message }} -
-
MediaChance -
Thanks - Reply
Signature{{ DiscussionBoard.errors[11371432].message }} -
-
Voivode -
[ 1 ] Thanks - Reply
- 1 reply
{{ DiscussionBoard.errors[11371664].message }}-
MediaChance -
Thanks - Reply
Signature{{ DiscussionBoard.errors[11371684].message }} -
-
