Welcome to WebmasterWorld Guest from

Forum Moderators: ocean10000

Message Too Old, No Replies

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

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

Junior Member

10+ Year Member

joined:Apr 23, 2004
votes: 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)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:June 2, 2003
votes: 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;


Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members