Skip to content

Instantly share code, notes, and snippets.

peter-m / .htaccess
Created September 18, 2012 10:11
check if a mod is enabled - if so, redirect to
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 if calling <your_project_root>
RewriteRule ^(.*)$ [R=301]
# --> if the module is not enabled, you should be redirected to google
peter-m / hide-text-class.css
Created June 22, 2012 14:36
semantic hide text (tackles -9999px's performance issues)
View hide-text-class.css
.hide-text {
text-indent: 100%;
white-space: nowrap;
overflow: hidden;