protocolredirect
v2.1.0
Published
Redirect HTTP visitors to HTTPS using pure Javascript
Downloads
1
Maintainers
Readme
��#� �P�r�o�t�o�c�o�l� �R�e�d�i�r�e�c�t�
�
�U�s�e� �J�S� �t�o� �c�h�a�n�g�e� �t�h�e� �U�R�L� �p�r�o�t�o�c�o�l� �f�r�o�m� �h�t�t�p� �t�o� �h�t�t�p�s�.�
�
�
�
�-�-�-�
�
�
�
�[�!�[�B�u�i�l�d� �S�t�a�t�u�s�]�(�h�t�t�p�s�:�/�/�a�p�p�.�t�r�a�v�i�s�-�c�i�.�c�o�m�/�J�e�b�B�a�r�b�a�s�/�p�r�o�t�o�c�o�l�r�e�d�i�r�e�c�t�.�s�v�g�?�b�r�a�n�c�h�=�m�a�i�n�)�]�(�h�t�t�p�s�:�/�/�a�p�p�.�t�r�a�v�i�s�-�c�i�.�c�o�m�/�J�e�b�B�a�r�b�a�s�/�p�r�o�t�o�c�o�l�r�e�d�i�r�e�c�t�)�
�
�[�!�[�d�e�p�e�n�d�e�n�c�i�e�s� �S�t�a�t�u�s�]�(�h�t�t�p�s�:�/�/�s�t�a�t�u�s�.�d�a�v�i�d�-�d�m�.�o�r�g�/�g�h�/�j�e�b�b�a�r�b�a�s�/�p�r�o�t�o�c�o�l�r�e�d�i�r�e�c�t�.�s�v�g�)�]�(�h�t�t�p�s�:�/�/�d�a�v�i�d�-�d�m�.�o�r�g�/�j�e�b�b�a�r�b�a�s�/�p�r�o�t�o�c�o�l�r�e�d�i�r�e�c�t�)�
�
�!�[�n�p�m�]�(�h�t�t�p�s�:�/�/�i�m�g�.�s�h�i�e�l�d�s�.�i�o�/�n�p�m�/�v�/�p�r�o�t�o�c�o�l�r�e�d�i�r�e�c�t�)�
�
�!�[�n�p�m�]�(�h�t�t�p�s�:�/�/�i�m�g�.�s�h�i�e�l�d�s�.�i�o�/�n�p�m�/�d�t�/�p�r�o�t�o�c�o�l�r�e�d�i�r�e�c�t�)�
�
�!�[�G�i�t�H�u�b� �t�o�p� �l�a�n�g�u�a�g�e�]�(�h�t�t�p�s�:�/�/�i�m�g�.�s�h�i�e�l�d�s�.�i�o�/�g�i�t�h�u�b�/�l�a�n�g�u�a�g�e�s�/�t�o�p�/�j�e�b�b�a�r�b�a�s�/�p�r�o�t�o�c�o�l�r�e�d�i�r�e�c�t�)�
�
�!�[�G�i�t�H�u�b� �R�e�p�o� �s�t�a�r�s�]�(�h�t�t�p�s�:�/�/�i�m�g�.�s�h�i�e�l�d�s�.�i�o�/�g�i�t�h�u�b�/�s�t�a�r�s�/�j�e�b�b�a�r�b�a�s�/�p�r�o�t�o�c�o�l�r�e�d�i�r�e�c�t�?�s�t�y�l�e�=�s�o�c�i�a�l�)�
�
�
�
�#�#� �H�o�w� �T�o� �U�s�e� �-� �D�o�w�n�l�o�a�d�
�
�J�u�s�t� �a�d�d� �a� ��s�c�r�i�p�t�
� �t�a�g� �i�n� �y�o�u�r� ��h�e�a�d�
� �p�o�i�n�t�i�n�g� �t�h�e� �f�i�l�e�,� �y�o�u� �c�a�n� �u�s�e� �t�h�e� �[�j�s�d�e�l�i�v�r�]�(�h�t�t�p�s�:�/�/�w�w�w�.�j�s�d�e�l�i�v�r�.�c�o�m�/�)� �C�D�N�.�
�
��
��h�t�m�l�
�
�<�s�c�r�i�p�t� �s�r�c�=�"�h�t�t�p�s�:�/�/�c�d�n�.�j�s�d�e�l�i�v�r�.�n�e�t�/�n�p�m�/�p�r�o�t�o�c�o�l�r�e�d�i�r�e�c�t�@�2�.�1�.�0�"�>�<�/�s�c�r�i�p�t�>�
�
�
��
�
�
�
�
�#�#� �H�o�w� �T�o� �U�s�e� �-� �Q�u�i�c�k� �S�t�a�r�t�
�
�W�h�e�n� �t�h�e� �f�i�l�e� �r�u�n�s�,� �i�t� �c�h�e�c�k�s� �i�f� �y�o�u� �a�r�e� �i�n� �h�t�t�p�,� �i�f� �n�o�t�,� �I�t� �w�i�l�l� �r�e�d�i�r�e�c�t� �y�o�u� �t�o� �t�h�e� �s�a�m�e� �p�a�g�e�,� �b�u�t� �i�n� �h�t�t�p�s�.�
�
�D�o�n�'�t� �w�o�r�r�y�,� �i�f� �y�o�u� �a�r�e� �i�n� �l�o�c�a�l�h�o�s�t� �o�r� �1�2�7�.�0�.�0�.�1� �t�h�i�s� �w�i�l�l� �n�o�t� �d�o� �a�n�y�t�h�i�n�g�.�
�
�