Skip to content

Instantly share code, notes, and snippets.

Radley Anaya Radmation

Block or report user

Report or block Radmation

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
Radmation / Force HTTPS .htaccess
Created Sep 12, 2019
Force HTTPS .htaccess - typical servers
View Force HTTPS .htaccess
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
View ngrok with Homestead
ngrok http -host-header=rewrite mysite.test:80
Radmation / Common .htaccess Redirects
Last active Jul 23, 2019 — forked from ScottPhillips/.htaccess
Common .htaccess Redirects
View Common .htaccess Redirects
#301 Redirects for .htaccess
#Redirect a single page:
Redirect 301 /pagename.php
#Redirect an entire site:
Redirect 301 /
#Redirect an entire site to a sub folder
Redirect 301 /
Radmation / Cloud Sites - Force HTTPS
Last active Sep 12, 2019
Cloud Sites - Force HTTPS
View Cloud Sites - Force HTTPS
RewriteEngine on
RewriteBase /
RewriteCond %{ENV:HTTPS} !on [NC]
RewriteRule ^(.*)$$1 [R,L]
View wp-query-ref.php
// This gist is now maintained on github at
* WordPress Query Comprehensive Reference
* Compiled by luetkemj -
* Source:
You can’t perform that action at this time.