homepage Welcome to WebmasterWorld Guest from 50.17.107.233
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Subscribe to WebmasterWorld
Visit PubCon.com
Home / Forums Index / Microsoft / Microsoft IIS Web Server and ASP.NET
Forum Library, Charter, Moderators: ocean10000

Microsoft IIS Web Server and ASP.NET Forum

    
How to Redirect A web page
brainpulse




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

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

 

webworker us




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

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?

rpshah1208




msg:953867
 9:31 am on May 23, 2006 (gmt 0)

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

webworker us




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

If you know my solution, why do you need an email?

ctudorprice




msg:953869
 2:46 pm on May 23, 2006 (gmt 0)

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.

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.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
© Webmaster World 1996-2014 all rights reserved