Click here to Skip to main content
15,899,679 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
In the browser url if i write "abc" then it has to automatically redirect to the "http://www.abc.com" or "abc.com" then also it has to http://www.abc.com
so how to do that one in .net or any other language
Posted
Comments
DaveAuld 13-Nov-10 6:15am    
Sorry, but you have lost me after the first "abc"?
E.F. Nijboer 13-Nov-10 6:55am    
you simply parse the url and add the missing parts if needed.
thatraja 13-Nov-10 7:05am    
Type abc & press Ctrl + Enter, then it will redirected to www.abc.com. Use Shift + Enter to www.abc.net

1 solution

Probably you are talking about redirecting requests to http://abc.com on your server to http://www.abc.com.

This can be done by some URL rewriting. IIS 7 and higher has built-in support[^] for that, for IIS6, I used URL Rewriter[^] (free) in the past successfully.

Cheers
Uwe
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900