Re: 301 redirect

This WebDNA talk-list message is from

2008


It keeps the original formatting.
numero = 69870
interpreted = N
texte = Hmm. I'll check. Nope, not it. Well, if anybody has any ideas now or in the future, here is the code I'm using: [text]line_ending=%0D%0A[/text] [ReturnRaw]HTTP/1.1 301 Moved Permanently[unurl][line_ending][/unurl][!] [/!]Location: http://www.smithmicro.com/[unurl][line_ending][/unurl][!] [/!][unurl][line_ending][/unurl][!] [/!][/ReturnRaw] And just for reference, here is code from a working 302 & 404: [ReturnRaw]HTTP/1.0 302 Found[unurl][line_ending][/unurl][!] [/!]Location: http://www.smithmicro.com/[unurl][line_ending][/unurl][!] [/!][unurl][line_ending][/unurl][!] [/!][/ReturnRaw] [ReturnRaw]HTTP/1.1 404 Object Not Found[unurl][line_ending][/unurl][!] [/!]Status: 404[unurl][line_ending][/unurl][!] [/!]Server: Apache[unurl][line_ending][/unurl][!] [/!]Connection: Close[unurl][line_ending][/unurl][!] [/!]MIME-Version: 1.0[unurl][line_ending][/unurl][!] [/!]Content-Type: text/html[unurl][line_ending][/unurl][!] [/!][unurl][line_ending][/unurl][!] [/!][include file=404.html][unurl][line_ending][/unurl][!] [/!][/ReturnRaw] On Wed, 27 Feb 2008 12:33:39 +1100 Stuart Tremain wrote: > Could it be your spelling of PERMANENTLY ??? > > Regards > > Stuart Tremain > IDFK Web Developments > AUSTRALIA > webdna@idfk.com.au > > > > > On 27/02/2008, at 12:12 PM, Dan Strong wrote: > >> Yeah I know I can do it in .htaccess, but it would require me to >> list 700+ old "pages" (dynamic site) in .htaccess and then do the >> 301 redirect. Somehow that just feels dumb, and even if not dumb, >> what woulkd be the performance hit of an .htaccess with 700+ rules >> in it? I currently have the redirects for all the old URLs working, >> but they do a [redirect], which of course is a 302. The preferred >> solution for me is to throw out a [returnraw] 301 rather than a >> [redirect]... there has got to be a way... >> -Dan >> >> On Wed, 27 Feb 2008 12:10:14 +1100 >> Stuart Tremain wrote: >>> Never tried it, I usually do it through my server or mod_rewrite >>> Regards >>> Stuart Tremain >>> IDFK Web Developments >>> AUSTRALIA >>> webdna@idfk.com.au >>> On 27/02/2008, at 11:42 AM, Dan Strong wrote: >>>> Nobody? >>>> >>>> On Tue, 26 Feb 2008 11:19:04 -0800 >>>> "Dan Strong" wrote: >>>>> Anybody gotten a 301 to work? >>>>> This ain't working: >>>>> --------------------- >>>>> [ReturnRaw]HTTP/1.0 301 Moved permenantly >>>>> Location: http://www.mydomain.com/ >>>>> blah blah blah >>>>> [/ReturnRaw] >>>>> I can get a 302 & 404 to work, but not 301... >>>>> -Dan >>>>> ------------------------------------------------------------- >>>>> This message is sent to you because you are subscribed to >>>>> the mailing list . >>>>> To unsubscribe, E-mail to: >>>>> To switch to the DIGEST mode, E-mail to >>>> > >>>>> Web Archive of this list is at: http://webdna.smithmicro.com/ >>>> >>>> >>>> ------------------------------------------------------------- >>>> This message is sent to you because you are subscribed to >>>> the mailing list . >>>> To unsubscribe, E-mail to: >>>> To switch to the DIGEST mode, E-mail to >>> > >>>> Web Archive of this list is at: http://webdna.smithmicro.com/ >>> ------------------------------------------------------------- >>> This message is sent to you because you are subscribed to >>> the mailing list . >>> To unsubscribe, E-mail to: >>> To switch to the DIGEST mode, E-mail to >> > >>> Web Archive of this list is at: http://webdna.smithmicro.com/ >> >> >> ------------------------------------------------------------- >> This message is sent to you because you are subscribed to >> the mailing list . >> To unsubscribe, E-mail to: >> To switch to the DIGEST mode, E-mail to > > >> Web Archive of this list is at: http://webdna.smithmicro.com/ > > > ------------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to > Web Archive of this list is at: http://webdna.smithmicro.com/ ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] 301 redirect ("Matthew A Perosi, Psi Prime" 2017)
  2. Re: [WebDNA] 301 redirect (Stuart Tremain 2016)
  3. Re: [WebDNA] 301 redirect (Brian Burton 2016)
  4. Re: [WebDNA] 301 redirect (Stuart Tremain 2016)
  5. Re: [WebDNA] 301 redirect (Donovan Brooke 2016)
  6. Re: [WebDNA] 301 redirect (Donovan Brooke 2016)
  7. Re: [WebDNA] 301 redirect (Stuart Tremain 2016)
  8. Re: [WebDNA] 301 redirect (Stuart Tremain 2016)
  9. Re: [WebDNA] 301 redirect (Donovan Brooke 2016)
  10. Re: [WebDNA] 301 redirect (Donovan Brooke 2016)
  11. Re: [WebDNA] 301 redirect (Stuart Tremain 2016)
  12. [WebDNA] 301 redirect (Stuart Tremain 2016)
  13. Re: [WebDNA] 301 redirect (Donovan Brooke 2016)
  14. Re: [WebDNA] 301 redirect (Govinda 2010)
  15. Re: [WebDNA] 301 redirect (Tom Duke 2010)
  16. [WebDNA] 301 redirect (Stuart Tremain 2010)
  17. Re: [WebDNA] 301 redirect on linux (Kenneth Grome 2010)
  18. Re: [WebDNA] 301 redirect on linux (Donovan Brooke 2010)
  19. Re: [WebDNA] 301 redirect on linux (Tom Duke 2010)
  20. Re: [WebDNA] 301 redirect on linux (Kenneth Grome 2010)
  21. [WebDNA] 301 redirect on linux (Tom Duke 2010)
  22. Re: [BULK] Re: [WebDNA] How to code a 301 redirect (Donovan Brooke 2009)
  23. Re: [BULK] Re: [WebDNA] How to code a 301 redirect (Donovan 2009)
  24. [BULK] Re: [WebDNA] How to code a 301 redirect (Clint Davis 2009)
  25. [BULK] Re: [WebDNA] How to code a 301 redirect (Clint Davis 2009)
  26. Re: [WebDNA] How to code a 301 redirect (=?ISO-8859-1?Q?Claude_G=E9linas?= 2008)
  27. Re: [WebDNA] How to code a 301 redirect (Chris 2008)
  28. RE: [WebDNA] How to code a 301 redirect ("Sue Blesch" 2008)
  29. Re: [WebDNA] How to code a 301 redirect (Donovan Brooke 2008)
  30. Re: [WebDNA] How to code a 301 redirect (Gary Krockover 2008)
  31. Re: [WebDNA] How to code a 301 redirect (Bob Minor 2008)
  32. Re: [WebDNA] How to code a 301 redirect ("Dan Strong" 2008)
  33. Re: [WebDNA] How to code a 301 redirect ("Tom Duke" 2008)
  34. Re: [WebDNA] How to code a 301 redirect (Grant Hulbert 2008)
  35. Re: [WebDNA] How to code a 301 redirect (Gary Krockover 2008)
  36. Re: [WebDNA] How to code a 301 redirect ("Dan Strong" 2008)
  37. Re: [WebDNA] How to code a 301 redirect ("Tom Duke" 2008)
  38. Re: [WebDNA] How to code a 301 redirect ("Dan Strong" 2008)
  39. Re: [WebDNA] How to code a 301 redirect (Bob Minor 2008)
  40. Re: [WebDNA] How to code a 301 redirect ("Dan Strong" 2008)
  41. Re: [WebDNA] How to code a 301 redirect (Frank Nordberg 2008)
  42. Re: [WebDNA] How to code a 301 redirect ("Tom Duke" 2008)
  43. Re: [WebDNA] How to code a 301 redirect ("Dan Strong" 2008)
  44. Re: [WebDNA] How to code a 301 redirect ("Tom Duke" 2008)
  45. Re: [WebDNA] How to code a 301 redirect ("Dan Strong" 2008)
  46. [WebDNA] How to code a 301 redirect ("Tom Duke" 2008)
  47. Re: 301 redirect ( Stuart Tremain 2008)
  48. Re: 301 redirect ( "Dan Strong" 2008)
  49. Re: 301 redirect ( Stuart Tremain 2008)
  50. Re: 301 redirect ( "Dan Strong" 2008)
  51. Re: 301 redirect ( Stuart Tremain 2008)
  52. Re: 301 redirect ( "Dan Strong" 2008)
  53. 301 redirect ( "Dan Strong" 2008)
Hmm. I'll check. Nope, not it. Well, if anybody has any ideas now or in the future, here is the code I'm using: [text]line_ending=%0D%0A[/text] [returnraw]HTTP/1.1 301 Moved Permanently[unurl][line_ending][/unurl][!] [/!]Location: http://www.smithmicro.com/[unurl][line_ending][/unurl][!] [/!][unurl][line_ending][/unurl][!] [/!][/ReturnRaw] And just for reference, here is code from a working 302 & 404: [returnraw]HTTP/1.0 302 Found[unurl][line_ending][/unurl][!] [/!]Location: http://www.smithmicro.com/[unurl][line_ending][/unurl][!] [/!][unurl][line_ending][/unurl][!] [/!][/ReturnRaw] [returnraw]HTTP/1.1 404 Object Not Found[unurl][line_ending][/unurl][!] [/!]Status: 404[unurl][line_ending][/unurl][!] [/!]Server: Apache[unurl][line_ending][/unurl][!] [/!]Connection: Close[unurl][line_ending][/unurl][!] [/!]MIME-Version: 1.0[unurl][line_ending][/unurl][!] [/!]Content-Type: text/html[unurl][line_ending][/unurl][!] [/!][unurl][line_ending][/unurl][!] [/!][include file=404.html][unurl][line_ending][/unurl][!] [/!][/ReturnRaw] On Wed, 27 Feb 2008 12:33:39 +1100 Stuart Tremain wrote: > Could it be your spelling of PERMANENTLY ??? > > Regards > > Stuart Tremain > IDFK Web Developments > AUSTRALIA > webdna@idfk.com.au > > > > > On 27/02/2008, at 12:12 PM, Dan Strong wrote: > >> Yeah I know I can do it in .htaccess, but it would require me to >> list 700+ old "pages" (dynamic site) in .htaccess and then do the >> 301 redirect. Somehow that just feels dumb, and even if not dumb, >> what woulkd be the performance hit of an .htaccess with 700+ rules >> in it? I currently have the redirects for all the old URLs working, >> but they do a [redirect], which of course is a 302. The preferred >> solution for me is to throw out a [returnraw] 301 rather than a >> [redirect]... there has got to be a way... >> -Dan >> >> On Wed, 27 Feb 2008 12:10:14 +1100 >> Stuart Tremain wrote: >>> Never tried it, I usually do it through my server or mod_rewrite >>> Regards >>> Stuart Tremain >>> IDFK Web Developments >>> AUSTRALIA >>> webdna@idfk.com.au >>> On 27/02/2008, at 11:42 AM, Dan Strong wrote: >>>> Nobody? >>>> >>>> On Tue, 26 Feb 2008 11:19:04 -0800 >>>> "Dan Strong" wrote: >>>>> Anybody gotten a 301 to work? >>>>> This ain't working: >>>>> --------------------- >>>>> [returnraw]HTTP/1.0 301 Moved permenantly >>>>> Location: http://www.mydomain.com/ >>>>> blah blah blah >>>>> [/ReturnRaw] >>>>> I can get a 302 & 404 to work, but not 301... >>>>> -Dan >>>>> ------------------------------------------------------------- >>>>> This message is sent to you because you are subscribed to >>>>> the mailing list . >>>>> To unsubscribe, E-mail to: >>>>> To switch to the DIGEST mode, E-mail to >>>> > >>>>> Web Archive of this list is at: http://webdna.smithmicro.com/ >>>> >>>> >>>> ------------------------------------------------------------- >>>> This message is sent to you because you are subscribed to >>>> the mailing list . >>>> To unsubscribe, E-mail to: >>>> To switch to the DIGEST mode, E-mail to >>> > >>>> Web Archive of this list is at: http://webdna.smithmicro.com/ >>> ------------------------------------------------------------- >>> This message is sent to you because you are subscribed to >>> the mailing list . >>> To unsubscribe, E-mail to: >>> To switch to the DIGEST mode, E-mail to >> > >>> Web Archive of this list is at: http://webdna.smithmicro.com/ >> >> >> ------------------------------------------------------------- >> This message is sent to you because you are subscribed to >> the mailing list . >> To unsubscribe, E-mail to: >> To switch to the DIGEST mode, E-mail to > > >> Web Archive of this list is at: http://webdna.smithmicro.com/ > > > ------------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to > Web Archive of this list is at: http://webdna.smithmicro.com/ ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ "Dan Strong"

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

[WebDNA] Lightbox2 for WebDNA [updated] (2008) [LOOKUP] (1997) Dynamic Form - Shipping Country / State/ Province (2006) WebDNA Solutions ... sorry! (1997) Hiding HTML and page breaks (1997) Conditional searching & displaying (1997) Webstar 1.3.1 PPC (1997) another problem (1997) Has anyone used WebCatalog with CGatePro? (2000) Encoding information to send through TCPConnect (1999) command parameters (1998) Some Questions (1997) tpl and Explorer (1998) Bug alert! (1997) gateway application timeouts (1998) Forms Search Questions (1997) Using Cookie for client specific info? (1997) date pref (1999) Anyone selling 4.5 NT License? (2003) I try hard to think positively (1998)