Skip to content

Instantly share code, notes, and snippets.

View danielhauchler's full-sized avatar

Daniel Hauchler danielhauchler

View GitHub Profile
@danielhauchler
danielhauchler / SEO expired htaccess
Last active July 16, 2019 15:50
SEO expired htaccess
why should we do?
-> https://moz.com/ugc/expires-headers-for-seo-why-you-should-think-twice-before-using-them
you need to have some modules on hosting active : mod_expires.c and mod_deflate.c
other then this, you only need to add this codes to the .htaccess file, after the content that is allready there
Content compression and expiration have been enabled for domain domain.xxx
if its done, there are 4 static components without a far-future expiration date.
-> https://maps.googleapis.com/maps/api/js?key=AIzaSyBjvS4LNUdlMyIh7pM96WLkNLIxtY1VWA4&callback=initMap
-> https://fonts.googleapis.com/css?family=Open+Sans:400,700,300
@danielhauchler
danielhauchler / schema-org-travelbusiness-tpl.html
Last active August 3, 2016 10:00
schema-org-travelbusiness
<div itemscope itemtype="http://schema.org/hotel">
<img itemprop="logo" src="http://HOTEL-LOGO-PATH.svg" alt="" title="" />
<h1>
<a itemprop="url" href="#" title>
<span itemprop="name">### NAME OF HOTEL ###</span>
</a>
</h1>
<p itemprop="description">### ONE OF THE MOST BEAUTIFUL HOTELS ###</p>
<img itemprop="image" src="### http://HOTEL-IMAGE.jpg ###" title="" alt="" >
<div itemprop="address" itemscope itemtype="http://schema.org/PostalAddress">