Click here to Skip to main content
15,918,808 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Time line for Work Completion for Asp.net C# and SqlServer DB Pin
jkirkerx9-Oct-15 9:51
professionaljkirkerx9-Oct-15 9:51 
GeneralRe: Time line for Work Completion for Asp.net C# and SqlServer DB Pin
macca2413-Oct-15 0:58
macca2413-Oct-15 0:58 
QuestionRead Invoice number from pdf file Pin
Praveen Kandari8-Oct-15 22:35
Praveen Kandari8-Oct-15 22:35 
AnswerRe: Read Invoice number from pdf file Pin
ZurdoDev13-Oct-15 2:24
professionalZurdoDev13-Oct-15 2:24 
GeneralRe: Read Invoice number from pdf file Pin
Praveen Kandari15-Oct-15 1:36
Praveen Kandari15-Oct-15 1:36 
GeneralRe: Read Invoice number from pdf file Pin
ZurdoDev15-Oct-15 1:41
professionalZurdoDev15-Oct-15 1:41 
QuestionAsp.net Rapid Development Pin
macca248-Oct-15 3:38
macca248-Oct-15 3:38 
Questionissue in unifying domain.com with www.domain.com using 301 redirect Pin
9pagod7-Oct-15 5:23
9pagod7-Oct-15 5:23 
Hi,

My company website is with ASP.NET 2.0 and one day the marketing guy ask me to unify domain.com to www.domain.com so that if visitors visit domain.com they will be redirected to www.domain.com and the status code must be 301 (301 Moved Permanently). He asks me to verify with http://www.redirect-checker.org/. In this site if we input domain.com and click Analyse button, if we have "Status: 301 Moved Permanently" then it's ok.

I tried with so many methods (using URL_Rewrite muldule with Canonical redirect, setup domain.com and redirect to www.domain.com, add <rewrite> rule to web.config file) and all of the methods work fine. However, I only have "Status: 301 Moved Permanently" for the first times access to the site. A second times when I access I see the site be redirected correctly to www.domain.com but the header is "HTTP/1.1 200 OK" but NOT "Status: 301 Moved Permanently" anymore.

Could you please help me how to always have "Status: 301 Moved Permanently"?

Thank you in advance
AnswerRe: issue in unifying domain.com with www.domain.com using 301 redirect Pin
Richard Deeming7-Oct-15 5:51
mveRichard Deeming7-Oct-15 5:51 
GeneralRe: issue in unifying domain.com with www.domain.com using 301 redirect Pin
9pagod7-Oct-15 6:10
9pagod7-Oct-15 6:10 
GeneralRe: issue in unifying domain.com with www.domain.com using 301 redirect Pin
Richard Deeming7-Oct-15 6:14
mveRichard Deeming7-Oct-15 6:14 
GeneralRe: issue in unifying domain.com with www.domain.com using 301 redirect Pin
9pagod7-Oct-15 6:27
9pagod7-Oct-15 6:27 
GeneralRe: issue in unifying domain.com with www.domain.com using 301 redirect Pin
Richard Deeming7-Oct-15 8:15
mveRichard Deeming7-Oct-15 8:15 
GeneralRe: issue in unifying domain.com with www.domain.com using 301 redirect Pin
9pagod7-Oct-15 16:04
9pagod7-Oct-15 16:04 
GeneralRe: issue in unifying domain.com with www.domain.com using 301 redirect Pin
Richard Deeming8-Oct-15 1:51
mveRichard Deeming8-Oct-15 1:51 
GeneralRe: issue in unifying domain.com with www.domain.com using 301 redirect Pin
9pagod8-Oct-15 2:31
9pagod8-Oct-15 2:31 
QuestionAccess to files from differentes server Pin
Wissem ElHami7-Oct-15 1:32
Wissem ElHami7-Oct-15 1:32 
AnswerRe: Access to files from differentes server Pin
ZurdoDev13-Oct-15 2:25
professionalZurdoDev13-Oct-15 2:25 
QuestionUpdate All records in Gridview Pin
macca246-Oct-15 23:09
macca246-Oct-15 23:09 
AnswerRe: Update All records in Gridview Pin
ZurdoDev13-Oct-15 2:27
professionalZurdoDev13-Oct-15 2:27 
QuestionCreating Reports in VS 2012 Pin
macca246-Oct-15 23:01
macca246-Oct-15 23:01 
AnswerRe: Creating Reports in VS 2012 Pin
ZurdoDev13-Oct-15 2:27
professionalZurdoDev13-Oct-15 2:27 
QuestionAdding 3 fields together and updating a fourth field with the value Pin
macca246-Oct-15 22:23
macca246-Oct-15 22:23 
AnswerRe: Adding 3 fields together and updating a fourth field with the value Pin
ZurdoDev13-Oct-15 2:28
professionalZurdoDev13-Oct-15 2:28 
QuestionBulk Calculation Pin
macca246-Oct-15 2:36
macca246-Oct-15 2:36 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.