A: 
RewriteEngine On
RewriteRule ^hr$ Departments/dynamicPage.php?DeptID=10&DeptName=HR [R=301]
Jordan Ryan Moore
does the ^hr$ specify this is off the root like ...com/hr/ or would it also redirect if there was another nested directory like ..com/this/that/theother/hr/???
Don
`^` at the beginning of a regular expression requires the following sequence to match the start of the string (in our case, the URL). `$` at the end of a regular expression requires the previous sequence to match the end of the string. `^hr$` will only match strings that are "hr".
Jordan Ryan Moore
+2  A: 

Seems reasonable. Something along the lines of this should do the trick:

RewriteRule ^hr$ /Departments/dynamicPage.php?DeptID=10&DeptName=HR [L]

If you want to make it generic:

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)$ /Departments/dynamicPage.php?DeptID=10&DeptName=$1 [L]

Of course, then you need to be careful about people heading to departments which don't actually exist, and you'll need to make sure all your DeptNames make sense.

If you want a 301 redirect, use [R=301] or [L,R=301] at the end of the rewrite rule.

Samir Talwar
The generic solution may not work correctly because you have DeptID=10 in the URL.
Matt Ryall
Good point. The problem there is more one of redundant information. That could probably be ditched altogether.
Samir Talwar