homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Microsoft / Microsoft IIS Web Server and ASP.NET
Forum Library, Charter, Moderators: ocean10000

Microsoft IIS Web Server and ASP.NET Forum

Redirect server side from domain.com to www.domain.com

 4:50 am on Oct 6, 2005 (gmt 0)

Can someone please sticky me the code and process that I will need to follow in order to redirect a clients traffic from domain.com to www.domain.com? I am a pHp person and am not familiar with .Net. Please someone help me out as they are getting hit with problems.

Thank You



 1:22 pm on Oct 6, 2005 (gmt 0)

You could pass the url into something like this and redirect accordingly:

private string TreatURL(string input_RawURL)
string internal_RawURL = input_RawURL;

if (internal_RawURL.StartsWith("http://www.") == false )
internal_RawURL = "http://www." + internal_RawURL;

return internal_RawURL;

Global Options:
 top home search open messages active posts  

Home / Forums Index / Microsoft / Microsoft IIS Web Server and ASP.NET
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved