Login    Forum    Search    FAQ   Blog

Board index » Server Side Development » Dotnet




 Page 1 of 1 [ 7 posts ] 



Author Message
 Post subject: www redirect
 Post Posted: Fri Oct 02, 2009 4:21 am 
Offline

Joined: Sat Feb 21, 2009 11:25 am
Posts: 54
I was really sorry if I Placed this wuery on the wrong form, however I as pretty sure that you could

forgive me.

Ma issue comes here : I m havin 2 urls, www.somewebsite.com nd sumwebsite
.com . I am really sorry If this is 22 much of a hassle, but how could u redirect the
non www version to the www version of the urls. I am unable 2 configure iis, nd cannot
create a new website. Might be some Global.asax code, or something in web.config .


Top 
 Post subject: Re: www redirect
 Post Posted: Fri Oct 02, 2009 4:22 am 
Offline

Joined: Sat Feb 21, 2009 11:06 am
Posts: 1794
Not really sure If I follow, you mean u need 2 redirect 4m 1 site 2
another site? Could u pls elaborate much more?


Top 
 Post subject: Re: www redirect
 Post Posted: Fri Oct 02, 2009 4:22 am 
Offline

Joined: Sat Feb 21, 2009 1:08 pm
Posts: 549
You msut set ur host headers in IIS. Do Have a look at this
Microsoft article:

http://support.microsoft.com/kb/324287


Top 
 Post subject: Re: www redirect
 Post Posted: Fri Oct 02, 2009 4:23 am 
Offline

Joined: Sat Feb 21, 2009 11:06 am
Posts: 1794
Please be Paticular in ur question.

Code:
Response.Redirect["http:\\www.site.com"];


Top 
 Post subject: Re: www redirect
 Post Posted: Fri Oct 02, 2009 4:23 am 
Offline

Joined: Sat Feb 21, 2009 11:25 am
Posts: 54
Okay I would be specific

Code:
    * www.mysite.com will display site 1
    * mysite.com will display site 1


Here is what I want:

Code:
1. a client requests somesite.com
   2. the asp.net engine does some sprcessing
   3. the client is redirected to www.somesite.com


Here is what I have:

Code:
    * MY site is hosted, so i cannot configure iis, only change the asp.net code.
    * I cannot create an entirely diffrent site, and change iis display headers
    * I can only configure web.config and global.asax


Top 
 Post subject: Re: www redirect
 Post Posted: Fri Oct 02, 2009 4:24 am 
Offline

Joined: Sat Feb 21, 2009 11:06 am
Posts: 1794
-Hi,

my error "AFAIK, Response.Redirect uses parents '()' instead of square brackets '[]'.. "


Top 
 Post subject: Re: www redirect
 Post Posted: Fri Oct 02, 2009 4:24 am 
Offline

Joined: Sat Feb 21, 2009 1:08 pm
Posts: 549
Hi,

Im not sure in your case if its can do configure in config or asax.

But I think if your client want without www in your domain name, you should contact your hosting company to configure your domain name to access without www. I think theres a lot of hosting company offering a domain name can access without or with WWW in your domain name.


Top 
Display posts from previous:  Sort by  
 
 Page 1 of 1 [ 7 posts ] 




Board index » Server Side Development » Dotnet


Who is online

Users browsing this forum: No registered users and 1 guest

 
 

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron