views:

20

answers:

1

i would like to redirect requests on my site from

host.com/directory

to

host.com/?institution=directory

so that users can access the main level categories of my site using a directory notation I just have a hard time wrapping my head around the regex, any help would be appreciated

+1  A: 

You could use

RewriteEngine On
RewriteRule ^(directory)$ /?institution=$1 [QSA,L]
Dominik
You may want to fix (or unfix, as the case may be) the part of the pattern within the parens.
Ignacio Vazquez-Abrams