Welcome to WebmasterWorld Guest from 54.159.246.164

Forum Moderators: ocean10000

Message Too Old, No Replies

How to Redirect A web page

   
11:44 am on May 22, 2006 (gmt 0)

5+ Year Member



Hello Every Body,

I have a site running on IIS Server. I want to do the redirect the Pages. Please tell me the complete procedure how to redirect the web pages. I have the Complete access of IIS Server.

Please send me the details Code with the steps how to perform the operations

Regards
Ujjwal

3:03 pm on May 22, 2006 (gmt 0)

5+ Year Member



When you say redirect the pages, do you mean redirect the default page from C:\Inetpub to something different, or do you mean within a page, after a login?
9:31 am on May 23, 2006 (gmt 0)

5+ Year Member



Hi,

I m Ruchir Shah from india.

I know your solution but pls send an email to rpshah1208@yahoo.co.in

I m waiting for your mail

12:03 pm on May 23, 2006 (gmt 0)

5+ Year Member



If you know my solution, why do you need an email?
2:46 pm on May 23, 2006 (gmt 0)

5+ Year Member



HttpContext.Current.Response.Status = "301 Moved Permanently"
HttpContext.Current.Response.AddHeader("Location", "/newlocation.aspx")
HttpContext.Current.Response.End()

is the best way to preserve PR with Google etc.

You can also do a response.redirect which sends a "302 Object Moved" header response.

It depends what you are trying to do. There are also other tricks - but it depends what you are trying to do.