This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
How to force HTTPS using the .htaccess file | |
To force all web traffic to use HTTPS insert the following lines of code in the .htaccess file in your website’s root folder. | |
Important:If you have existing code in your .htaccess, add this above where there are already rules with a similar starting | |
prefix. | |
# Redirect to SSL version of a site without needing to set the domain name, | |
RewriteCond %{HTTPS} off | |
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
# Bash script for installing Fish Shell on systems without root access | |
# Fish Shell will be installed in $HOME/local/bin | |
# It's assumed that wget and a C/C++ compiler are installed | |
set -e # exit on error | |
FISH_VER=2.2.0 | |
mkdir -p $HOME/local $HOME/fish_shell_tmp # create our directories | |
cd $HOME/fish_shell_tmp |