RewriteEngine on RewriteCond %{REQUEST_URI} !\.(?:css|js|jpe?g|gif|png)$ [NC] RewriteRule ^([a-zA-Z0-9\-\_\/]*)$ index.php?p=$1
info at phpclasses dot org