0


I am developing a web site that uses a CMS and my actual home page is at mydomain.com/cms/home.aspx
When a user visits mydomain.com/index.aspx how to do I forward the site visitors to mydomain.com/cms/home.aspx?
One way is to create a dummy index.aspx with redirect to mydomain.com/cms/home.aspx but just wondering if there is a better way to do... may be in web.config or somewhere else!

Thanks
Sid

2 Answers 2

1

Redirects: How to redirect a URL path in IIS?

Rewrites: http://learn.iis.net/page.aspx/460/using-the-url-rewrite-module/

Both are a bit of learning, but can be achieved in a reasonable amount of time.

You always have the option of writing your own. For rewrites, you can write an HTTPModule (or update your CMS's rewrite module). For redirects, you can use a custom 404 page to handle redirects. I have done both for DotNetNuke. Rolling my own took about 16 hours, but handles a few hundred thousand of each efficiently with caching.

Sign up to request clarification or add additional context in comments.

1 Comment

Close but not exactly what I was looking for.. But +1 for that
0
<redirect url="index.aspx" to="~/Pages/1/home.aspx"></redirect>

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.