Difference between Response.Redirect and Response.RedirectPermanent

Posted by Sumit.Bundiwal under ASP.NET on 10/22/2012 | Points: 10 | Views : 5781 | Status : [Member] | Replies : 3
Difference between Response.Redirect and Response.RedirectPermanent ?

sumit bundiwal


Responses

Posted by: Rickeybglr on: 10/23/2012 [Member] Starter | Points: 25

Up
0
Down
Hi a very nice question.

there si only performance wise difference and used in search engine.
response.redirect is used when u want to create index of all previous pages which u already traversed.
response.redirectpermanent can't create index of previous page it jus got permanent tranfer. menas ur Url is transfered to new url permanently


Sumit.Bundiwal, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Seng2hs on: 10/23/2012 [Member] Starter | Points: 25

Up
0
Down
Response.Redirect() :

Search Engine will take this redirection as Temporary(Status 301) and always keep first page in its cache.

2. Response.RedirectParmanent() :

Search Engine will take this a permanent redirection(Status 302) and will remove first page from its database and include second page for better performance on search.

useage:

Response.Redirect used when your page is temporarily changed and will again be reverted to original within a short time.

Response.RedirectParmanent() when you are thinking of deleting the original page totally after the search engines changes its database.




Sumit.Bundiwal, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Sourabh07 on: 10/23/2012 [Member] Starter | Points: 25

Up
0
Down
hi..to all

I am little bit confused in this....

if both are performing the same functionality. So, why there is need of creating two different methods.

hi Seng2hs , please describe briefly, I am not getting you because the original page in both the cases gets equally effected.


Sourabh07

Sumit.Bundiwal, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response