Skip to content

Instantly share code, notes, and snippets.

@Stasonix
Created July 30, 2012 11:09

Revisions

  1. Stasonix created this gist Jul 30, 2012.
    6 changes: 6 additions & 0 deletions .htaccess
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^([a-zA-Z]*).html$ /?cat=$1 [L]
    RewriteRule ^([a-zA-Z]*)/([a-zA-Z]*)\.html$ /?cat=$1&page=$2 [QSA,L]