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.
how to map a querystring to subdomain using mod_rewrite
Moderator: General Moderators
-
swetamakode
- Forum Newbie
- Posts: 1
- Joined: Wed Jun 03, 2009 11:23 pm
- 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
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.