I need to write a few rules for the new site I'm working on.
So far it looks like there's at least 3 separate rules that need to be implemented.
1) rewrite the following:
mydomain.com/browse.php?cat=2
into:
mydomain.com/browse/2/
2) rewrite:
mydomain.com/image.php?id=44
into:
mydomain.com/image/44/
3) rewrite any other php file
mydomain.com/contact.php
into:
mydomain.com/contact/
so, I was able to write the first one just fine:
Options +FollowSymlinks
RewriteEngine on
RewriteRule ^browse/([0-9]+)/$ browse.php?cat=$1
and it works just fine.
I'm assuming the 2nd one shouldn't be any different and shouldn't interfere with the 1st in any way... but can't figure how to write the 3rd and make sure they do not butt heads or overwrite each other.
Any help is greatly appreciated...
Thank you for your time