how to map a querystring to subdomain using mod_rewrite

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
swetamakode
Forum Newbie
Posts: 1
Joined: Wed Jun 03, 2009 11:23 pm

how to map a querystring to subdomain using mod_rewrite

Post by swetamakode »

Hello,

In my website I used the url like www.domainname/user/page.php which i had done using mod_rewrite in .htaccess file,originally the url is like
www.domainname?uid =user&pid=page.php,but now the client had asked me for the url like

www.user.domainname.com.page.php is it possible to get it by URL mapping and using the concept of virtual subdomain or I have to introduce the concept of subdomains creation in my website to get it done.

Please reply asap.

Thankyou.
User avatar
AbraCadaver
DevNet Master
Posts: 2572
Joined: Mon Feb 24, 2003 10:12 am
Location: The Republic of Texas
Contact:

Re: how to map a querystring to subdomain using mod_rewrite

Post by AbraCadaver »

You can't do that. The browsing machine will never be able to resolve that as it is not a valid domain name.
mysql_function(): WARNING: This extension is deprecated as of PHP 5.5.0, and will be removed in the future. Instead, the MySQLi or PDO_MySQLextension should be used. See also MySQL: choosing an API guide and related FAQ for more information.
Post Reply