Scheme hardcoded to http in "Follow on Instagram" link
-
Instead of checking to see which scheme is being used by the WordPress installation, “http” is hard-coded in the link to “Follow on Instagram”. If the WordPress installation uses the https scheme, it is generally bad practice to have http links on the page when the https version is available. While Instagram takes care of the redirect, this scenario can cause an error to the user as they are informed that they are accessing an insecure page.
One fix is to use the WordPress function is_ssl(), which returns whether or not https is being used. Some example usage in this case:
<?php echo (is_ssl()?"https://www.instagram.com/":"https://www.instagram.com/")."usernamehere";?>
Another fix, since Instagram defaults to https://www.instagram.com/, is to replace the current hard-coded link with https://www.instagram.com/.
Some SEO websites suggest that redirects of this nature can cause a lower user experience, thus can possibly reduce the ranking given to a website where redirection links are present.
- The topic ‘Scheme hardcoded to http in "Follow on Instagram" link’ is closed to new replies.