PDA

View Full Version : How to divide a website traffic through URL?



KumarRaju
07-01-2009, 10:19 AM
Hi,
Is it possible to have two url's for the same website that is accessing two different pages of a website.

For E.g. For a website www.mysite.com, I want to have following url's
1. www.mysite.com goes to www.mysite.com/home.html
2. www.products.mysite.com ...it should redirect to www.mysite.com/products.html

Basically www.products.mysite.com is not a separate website but merely a different page so that website users interested in products can directly come here instead of coming from main page.

Could you please help me how to acheive this?

Thanks,
Kumar

Chris
07-02-2009, 09:06 AM
It is called a subdomain and your host can usually set it up for you.

But why? Couldn't you just have users go to example.com/products/ instead of products.example.com? Why the difference.

Technically, the only real reason to ever use a subdomain is if the subdomain is on a physically different server, in which case you need to do that sort of thing in your DNS setup. But if they're on the same file system just use a folder.

menj
08-12-2009, 08:44 AM
I don't see the point of why would one want to do that.