Page 1 of 1

How to change www in url with a specified name

Posted: Fri Oct 23, 2009 5:55 am
by kalpesh
Hi
I'm trying to change the url http://www.sitename.com/apparels to something like below
http://apparels.sitename.com/apparels in PHP.
If anybody can help me with the code for the same or provide links of tutorial which may be of help to me I would be very thankful.
Thanks in advance.

Re: How to change www in url with a specified name

Posted: Fri Oct 23, 2009 7:45 am
by markusn00b
kalpesh wrote:Hi
I'm trying to change the url http://www.sitename.com/apparels to something like below
http://apparels.sitename.com/apparels in PHP.
If anybody can help me with the code for the same or provide links of tutorial which may be of help to me I would be very thankful.
Thanks in advance.
PHP cannot do this. You need access to your server set up. What server software are you running?