views:

20

answers:

1

how can i write the settings with this i want to convert this file like codeigniter

www.yoursite.com/index?type=3&id=23

the results will b www.yoursite.com/index/type/3/23

can anybody help me on this

how rewrite this on htaccess thanks to all

A: 
<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^([a-zA-Z_0-9])/([a-zA-Z_0-9])/(.*)/([a-zA-Z_0-9])/(.*)$ /$1.php?$2=$3&$4=$5 [L]
</IfModule>
<IfModule !mod_rewrite.c>
    ErrorDocument 404 /no_mod_rewrite.html
</IfModule>
ITroubs