Forum Moderators: phranque
What will happen if I don't switch to HTTPS?
@IanCP There seems to be a notion that the word "http" needs to be replaced with "https" in the internal linking structure.
Not true! https should rarely appear in your files.
Assume you need to use absolute links (relative are better if on the same domain), try to use // instead of https://
This way it will work on both protocols and you can change gradually.
Example, let's say you had a resource to an external static image like this:
<img src="http://staticfiles.example.com/myImage.jpg" >
change that to
<img src="//staticfiles.example.com/myImage.jpg" >
(It may be off topic but the advice your hosting company gave is a little risky, sorry... don't do auto-replace on that scale)
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]Note: your server may require a different code The vote today was one in favor of rolling back Obama administration guidelines designed to protect consumers from ISPs that sought to collect, and sell personal data from customers. This information included, but isn’t necessarily limited to internet browsing history and search data. This would, presumably, be used by third-party corporate interests to track internet users and inject relevant ads.
Chrome now marks HTTP pages as “Not secure” if they have password or credit card fields. Beginning in October 2017, Chrome will show the “Not secure” warning in two additional situations: when users enter data on an HTTP page, and on all HTTP pages visited in Incognito mode... Eventually, we plan to show the “Not secure” warning for all HTTP pages[security.googleblog.com...]
RewriteCond %{HTTP_REFERER} !^http://www\.example\.com/
... long-string-of-other-conditions-here ...
RewriteRule \.(jpe?g|gif|png)$ /pictures/hotlink.png [L]
AddOutputFilterByType DEFLATE text/html text/css text/plain image/png image/gif text/javascript application/javascript application/x-httpd-fastphp
[edited by: phranque at 11:58 am (utc) on Aug 30, 2017]
[edit reason] No urls, please. See TOS [webmasterworld.com] [/edit]