I am kind of new to the whole mod_rewrite world and like to get more into this. I am trying to make the following URLs search engine friendly but it does not work. My web host / server is setup fine as I have some commercial scripts with SEO friendly URLs and htaccess in use.
I am trying to do the following:
http://www.mydomaincom/category.php?type=18
http://www.mydomaincom/viewlisting.php?view=6
Shall be rather something like:
http://www.mydomaincom/category/18/index.php
http://www.mydomaincom/viewlisting/6.php
Is that possible at all?
I started playing with the first one but did not get nowhere
RewriteEngine On
RewriteRule ^categories/(.*).php /category.php?type=18
Any help would be appreciated.
Chris