Skip to content

Instantly share code, notes, and snippets.

@peter-m
peter-m / hide-text-class.css
Created June 22, 2012 14:36
semantic hide text (tackles -9999px's performance issues)
.hide-text {
text-indent: 100%;
white-space: nowrap;
overflow: hidden;
}
@peter-m
peter-m / .htaccess
Created September 18, 2012 10:11
check if a mod is enabled - if so, redirect to google.com
# if mod_xyz is not enabled...
<IfModule !mod_xyz.c>
# ...turn on the rewrite engine... (we suppose it's already enabled)
RewriteEngine On
# ...and redirect to google.com if calling <your_project_root>
RewriteRule ^(.*)$ http://www.google.com/ [R=301]
</IfModule>
# --> if the module is not enabled, you should be redirected to google