Forum Moderators: phranque
RewriteCond %{QUERY_STRING} ^id\=(.+)$
RewriteRule ^content\.php /content/%1.html [L]
RewriteRule ^content\.php /content/index.html [L]
RewriteRule ^content\.php /content/ [L]
If the query string is contains id=(something)
Then rewrite /content.php?id=something to /content/(something).html and QUIT rewriting because of [L]
Otherwise fall through to the next rule, which unconditionally
rewrites /content.php to /content/index.html or /content/ if you use the second version
If you do this is .htaccess, this should work as-is. Otherwise you should use ^/content everywhere you see ^content now.
Hope it's clear...
Jim