Skip to content

Instantly share code, notes, and snippets.

View oazabir's full-sized avatar

Omar AL Zabir oazabir

View GitHub Profile
@oazabir
oazabir / .htaccess
Created May 13, 2013 16:15
Pretty robust .htaccess file, especially for wordpress. Supports extension less URL (permalinks), strong security, caches static content aggressively
ErrorDocument 404 /
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
@oazabir
oazabir / gist:3207041
Created July 30, 2012 13:52
Test Gist
This is a test Gist.