Click here to Skip to main content
15,890,557 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: (untagged)
How can we change redirection of url. Means i have a site abc.com.au. When i open it in browser abc.com.au or www.abc.com.au, it opens show different url (abc.com.au / www.abc.com.au). Now i want to do setting as such type it show only abc.com.au in browser either we write www.abc.com.au or abc.com.au. Can anybody have a idea regarding redirection of url, then please share with me.
Posted
Updated 25-Jun-12 23:16pm
v2

Since you have not tagged anything, assuming it's ASP.NET you are talking of, you need to use URL Rewriting.

Read here:
URL Rewriting with ASP.NET[^]
MSDN: URL Rewriting[^]

OR

Read about, In ASP.NET 4.0: URL Routing[^]

UPDATE:
Based on the comment: I want to know "how can we change url redirection setting in IIS". If you know kindly share with me
Look at these to set URL redirection in IIS:
MS Technet: Redirecting Web Sites in IIS 6.0 (IIS 6.0)[^]
HTTP Redirection in IIS 7 on Windows Server 2008[^]
Setting up a URL Redirect through IIS[^]
 
Share this answer
 
v2
Comments
Mas11 26-Jun-12 7:42am    
Thanks for your reply, But i don't want to solve this by coding. I want to know "how can we change url redirection setting in IIS". If you know kindly share with me
Sandeep Mewara 26-Jun-12 14:51pm    
Updated my answer.
Espen Harlinn 28-Jun-12 7:04am    
Nice :-D
Sandeep Mewara 28-Jun-12 7:24am    
Thanks Espen.
This discussion[^] covers how to do this.

You can also have a look at this:Redirecting Web Sites in IIS[^]

Best regards
Espen Harlinn
 
Share this answer
 
v2
Comments
Abhinav S 27-Jun-12 23:26pm    
My 5.
Espen Harlinn 28-Jun-12 7:04am    
Thank you, Abhinav!
Sandeep Mewara 28-Jun-12 7:24am    
My 5! Yes that helps.
Espen Harlinn 28-Jun-12 7:24am    
Thank you, Sandeep :-D

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