I know this is a common question, but can anyone give me advice on setting up a mod-rewrite that strips the URL of characters such as "?" and "=". I have scoured the message board and studied the other examples, but the solution eludes me.
I am trying to convert:
www.mydomain.com/resources/index.php?viewCat=1
to something like:
www.mydomain.com/resources/viewCat1.htm
or
www.mydomain.com/resources/categoryname
Here are the contents of my .htaccess file located in the /resources subdirectory:
RewriteEngine on
RewriteBase /
RewriteRule ^CatID([^.]+).*$ index.php?viewCat=$1
[T=application/x-httpd-php]
CatID is the category ID number from the MySQL database.
I know these repetitious newbie questions can get tiresome, but any advice or direction would be greatly appreciated.
Many thanks!