iBeyond wrote:
if i want> domain.com/?abc=xyz
to be> xyz.domain.com
then? Do i need wildcard or something?
Yes U need wildcard subdomains....I remember once I used..U try this Bro.But i'm not 100% sure with this..
RewriteEngine On
# Extract the subdomain part of domain.com
RewriteCond %{HTTP_HOST} ^([^\.]+)\.sri-wap\.net$ [NC]
# Check that the subdomain part is not www and ftp and mail
RewriteCond %1 !^(www|ftp|mail)$ [NC]
# Redirect all requests to a php script passing as argument the subdomain
RewriteRule ^.*$ http://www.domain.com?abc=%1 [R,L]
You better try this....
P.S. Original work is not mine and I do not remember Where I got this.