Skip to content

Instantly share code, notes, and snippets.

View hhrealestatemedia's full-sized avatar

Justin hhrealestatemedia

View GitHub Profile
Head:
<link rel='stylesheet' id='ihf-bundle-css-css' href='http://www.idxhome.com/service/resources/dist/wordpress/bundle.css?1552507158863' type='text/css' media='' />
<script type='text/javascript' src='http://wordpress.test/wp-includes/js/jquery/jquery.js?ver=1.12.4'></script>
<script type='text/javascript' src='http://wordpress.test/wp-includes/js/jquery/jquery-migrate.min.js?ver=1.4.1'></script>
<script type='text/javascript' src='http://www.idxhome.com/service/resources/dist/wordpress/bundle.js?1552507158863'></script>
<link rel="alternate" type="application/json+oembed" href="http://wordpress.test/wp-json/oembed/1.0/embed?url=http%3A%2F%2Fwordpress.test%2F" />
<link rel="alternate" type="text/xml+oembed" href="http://wordpress.test/wp-json/oembed/1.0/embed?url=http%3A%2F%2Fwordpress.test%2F&#038;format=xml" />
Footer:
<script type="text/javascript">
@hhrealestatemedia
hhrealestatemedia / wordpress_force_ssl_with_cloudflare.txt
Created May 3, 2019 15:10
Force SSL for WordPress when using Cloudflare, needs the Proto header to prevent the redirect loop. Add this block before the WordPress rules.
#Force to https
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTPS} !on
RewriteCond %{SERVER_PORT} !^443$
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]
</IfModule>
<?php
function get_keyword($referer)
{
$search_phrase = '';
$engines = array('dmoz' => 'q=',
'aol' => 'q=',
'ask' => 'q=',
'google' => 'q=',
'bing' => 'q=',