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:
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)