Directory Protection for WordPress via .htaccess

So I have found that the regular Directory Protection feature in CPanel does not work straight out of the box with WordPress installs.  In the below code after you setup a protection through CPanel you can take the provided data and customize it to match what is...

Directory Protection Minus Specific Files/Folders

Here is some code I found that can be used to protect a directory but tell the server to still allow access to specific files and folders. Apache SetEnvIf Request_URI "(path/to/folder/)$" allow SetEnvIf Request_URI "(path/to/file\.php)$" allow Order allow,deny Allow...

HTTP to HTTPS Redirect via HTAccess

So to have an entire site get redirected from HTTP to HTTPS you can use the following redirect code within the .htaccess file. HTTP to HTTPS HTAccess Rewrite RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https://www.example.com/$1 [R,L] 123...