htaccess/mod rewrite - .php?id=123 to 123.htm

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kris
    Junior Member
    • May 2004
    • 2

    #1

    htaccess/mod rewrite - .php?id=123 to 123.htm

    hi htaccess/mod rewrite gurus

    my code to change the ? and = for SEO so as to make it look like a htm page goes as follows :

    RewriteEngine on
    RewriteBase /
    RewriteRule ^cats([^.]+).*$ index.php?cats=$1 [T=application/x-httpd-php]

    the htaccess file is in the root directory, not sure where i bungled. Real newbie with PHP

    where my url shows up like http://www.domain.com/index.php?cats=MzI=
    and would like it to show up as http://www.domain.com/indexMzI.htm
    where MzI= is in encrypted form

    any help from htaccess gurus out there is appreciated

    ~Kris
Working...