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
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
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 http://www.domain.com/pagename.html
#Redirect an entire site:
Redirect 301 / http://www.domain.com/
#Redirect an entire site to a sub folder
Redirect 301 / http://www.domain.com/subfolder/
@Radmation
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 ^(.*)$ https://example.com/$1 [R,L]
View wp-query-ref.php
// This gist is now maintained on github at https://github.com/luetkemj/wp-query-ref
<?php
/**
* WordPress Query Comprehensive Reference
* Compiled by luetkemj - luetkemj.github.io
*
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query#Parameters
* Source: https://core.trac.wordpress.org/browser/tags/4.9.4/src/wp-includes/query.php
*/
You can’t perform that action at this time.