?
Solved

redirect asp.net 2.0 pages

Posted on 2006-03-31
2
Medium Priority
?
594 Views
Last Modified: 2008-02-01
Hi there

I have a server set up and am pointing .co.uk domain names to it.

In order to redirect the request when it hits my server, i have added this code to the iisstart page.


If HTTPHost = "www.domain.co.uk" then
    Response.Redirect ("http://www.domain.co.uk/folder")
End If

Now, i would prefer not to show the folder in the line so that pages are seen in the browser as www.domain.co.uk/default.aspx etc.,

Is there a way of doing this.
I am also conscious of the effect of the redirect might have on google rankings.

Any advise, much appreciated.

The server is hosting windows 2000 small business server if this helps.

thanks.
0
Comment
Question by:sunny-j
2 Comments
 
LVL 6

Accepted Solution

by:
Volkan Vardar earned 2000 total points
ID: 16343116
try
Server.Transfer("/folder")
0
 

Author Comment

by:sunny-j
ID: 16372837
thanks for this. i could not get it to work though.

is this correct

If HTTPHost = "www.domain.co.uk" then
    server.transfer ("/folder")
End If

It didn't redirect it to the folder i had in mind but simply showed the iisstart page.
any ideas of where i am going wrong. thanks.
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses the ASP.NET AJAX ModalPopupExtender control. In this article we will show how to use the ModalPopupExtender control, how to display/show/call the ASP.NET AJAX ModalPopupExtender control from javascript, how to show/display/cal…
Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses
Course of the Month14 days, 21 hours left to enroll

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question