apache .htaccess Rewriteengine on Rewriteengine ^search\.shtml$ /search.cgi%{QUERY_STRING} Rewriteengine ^([^.]*)/([^.]*)/([^.]*]\.html$ index.cgi?t=$1&c1=$1&p=$3