Neet help for advanced Rewrite URL

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
13 年 前
Hi team,

I want to change the url from

http://mydomain.com/category.aspx?CategoryID=1
to
http://sportcar.mydomain.com
(where sportcar is the category name which has the CategoryID=1)

Can you help me how to do it?

Many thanks!
13 年 前
Hi there. Can anyone help me? I need it and can not find out how to do it.
Many thanks!
13 年 前
trungnd wrote:
Hi team,

I want to change the url from

http://mydomain.com/category.aspx?CategoryID=1
to
http://sportcar.mydomain.com
(where sportcar is the category name which has the CategoryID=1)

Can you help me how to do it?

Many thanks!

The problem is that subdomains usually are configured on your hosting server. For example you can configure in your hosting server that http://sportcar.mydomain.com will forward you to a certain directory on your webserver.
I am not sure if you can do it with your hosting but if you can then make http://sportcar.mydomain.com forward to a page in the store for example http://mydomain.com/sportcat.aspx  and create a page named sportcar.aspx in visual studio,
In the codebehind make redirect
Response.Redirect("http://mydomain.com/category.aspx?CategoryID=1");
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.