This is pretty close but might be more useful:
Code:
RewriteEngine On
RewriteBase /
RewriteRule ^([^/]+)/?$ /index.php?linkhdr=$1
This handles a few more cases than the previous post. Plus you can also check to make sure that the path isn't a directory or file first with this placed before the previous RewriteRule:
Code:
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [L]
If the path is a file or directory, no other rewrite rules are considered. This kind thing prevents something like /images/ getting replaced with /index.php?linkhdr=images. I doubt the latter is what you'd want.