Skip to content

Instantly share code, notes, and snippets.

@peter-m
peter-m / .htaccess
Created Sep 18, 2012
check if a mod is enabled - if so, redirect to google.com
View .htaccess
# 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
@peter-m
peter-m / hide-text-class.css
Created Jun 22, 2012
semantic hide text (tackles -9999px's performance issues)
View hide-text-class.css
.hide-text {
text-indent: 100%;
white-space: nowrap;
overflow: hidden;
}