Hi
i convert : khazaen.ir/site/index.php?g=meysam to meysam.khazaen.ir with this code :in .htaccess
RewriteCond %{HTTP_HOST} ^([^\.]+)\.khazaen\.ir [NC]
RewriteCond %1 !^(www|ftp|mail|webmail)$ [NC]
RewriteRule ^$ /site/index.php?g=%1 [L]
but ...
How I can convert?
khazaen.ir/site/news_dt.php?g=meysam&id=12 to meysam.khazaen.ir/news_dt.php?id=12
(with 2 parametr)