Skip to content

Instantly share code, notes, and snippets.

View nikcree's full-sized avatar

Nik Cree nikcree

View GitHub Profile
# BEGIN Prevent PDF Appearing in Google Search
<FilesMatch "\.pdf$">
header set x-robots-tag: noindex
</FilesMatch>
# END Prevent PDF Invoices Appearing in Google Search
@nikcree
nikcree / GSuite Mail Records
Last active June 1, 2017 22:00
Google: GSuite Email Records
These are the records to set up with a domain registrar or in cPanel for GSuite Gmail
==============================
1. MX RECORDS
==============================
ASPMX.L.GOOGLE.COM 1
ALT1.ASPMX.L.GOOGLE.COM 5
ALT2.ASPMX.L.GOOGLE.COM 5
ALT3.ASPMX.L.GOOGLE.COM 10
ALT4.ASPMX.L.GOOGLE.COM 10
# BEGIN Leverage Browser Caching
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/gif "access 1 year"
ExpiresByType image/jpg "access 1 year"
ExpiresByType image/jpeg "access 1 year"
ExpiresByType image/png "access 1 year"
ExpiresByType image/x-icon "access 1 year"
ExpiresByType text/css "access 1 month"
ExpiresByType text/javascript "access 1 month"
# BEGIN GZIP
<ifmodule mod_deflate.c>
AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript
</ifmodule>
# END GZIP