Skip to content

Instantly share code, notes, and snippets.

@arrowmedia
Created May 14, 2013 13:25
Show Gist options
  • Save arrowmedia/5575831 to your computer and use it in GitHub Desktop.
Save arrowmedia/5575831 to your computer and use it in GitHub Desktop.
URL rewrite
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^([^/]*)\.html$ /index.php?page=$1 [L]
</IfModule>
ErrorDocument 404 /home.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment