#.htaccess RewriteEngine on RewriteBase / #Apache recurses into htaccess 3 times so we have to make sure not to overwrite an already processed rule RewriteCond %{REQUEST_URI} !^.*(\.php|\.css|\.js|\.html|\.ico|robots\.txt).*$ #The rewrite condition below can be used to pass through GET parameters (direct access) #RewriteCond %{THE_REQUEST} !^.*\?getparam1=.*$ # /blog/*/**/*** -----> blog.php?getparam1=*&getparam2=** #RewriteRule /blog[/]{0,}([a-zA-Z0-9 ]{1,})[/]{0,}([a-zA-Z0-9 ]{1,})[/]{0,}[.*]{0,}$ blog.php?getparam1=$1&getparam2=$2 RewriteRule ^blog[/]{0,}([^/]{0,})[/]{0,}([^/]{0,})[/]{0,}.*$ blog.php?getparam1=$1&getparam2=$2 [NC,QSA,L] # All not found requests --> somefile.php ErrorDocument 404 /somefile.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php