Re: [WebDNA] 301 redirect

This WebDNA talk-list message is from

2016


It keeps the original formatting.
numero = 112571
interpreted = N
texte = 153 --Apple-Mail=_F950F288-3102-416A-B42E-C234E80CB614 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 [text]eol=3D[unurl]%0D%0A[/unurl][/text] [function name=3D301public] [returnraw]HTTP/1.1 301 Moved Permanently[eol]Location: = http://www.mydomain.com[link][eol][eol][/returnraw] [/function] [function name=3D404hard] [returnraw]HTTP/1.0 404 Not Found[eol]Status: 404 Not = Found[eol]Content-type: text/html[eol][eol][eol][eol]

404 = Not Found

[eol]The page that you have requested ([thisurl]) could = not be found.[eol][eol][/returnraw] [/function] [function name=3D404soft] [returnraw]HTTP/1.0 404 Not Found[eol]Status: 404 Not = Found[eol]Content-type: text/html[eol][eol][include = file=3D/404pretty.tpl][/returnraw] [/function] I have 2 404 functions, one for humans, and one for web scrappers trying = to lift my 10,000 page website.=20 (no reason to waste bandwidth showing them a whole pretty webpage) -Brian B. > On Jan 26, 2016, at 7:57 PM, Stuart Tremain = wrote: >=20 > I have been reading some old posts about WSC =E2=80=98fixing=E2=80=99 = the redirect in WebDNA,=20 >=20 > "Functionally, "[redirect]" in WebDNA works fine, and has on all = platforms. By default, it creates a temporary redirect, which isn't = always what you want for SEO reasons. WSC has fixed the ability to make = 301 redirects with the latest beta's in both WebDNA Server and WebDNA = FastCGI." >=20 >=20 > However I can=E2=80=99t find any mention of it in the docs: >=20 > http://www.webdna.us/page.dna?numero=3D204 = >=20 > How do I specify a 301 redirect as opposed to a 307 ? >=20 > What version is this available in ? >=20 >=20 > Kind regards >=20 > Stuart Tremain > IDFK Web Developments > AUSTRALIA > webdna@idfk.com.au >=20 >=20 >=20 >=20 >=20 > --------------------------------------------------------- This message = is sent to you because you are subscribed to the mailing list . To = unsubscribe, E-mail to: archives: = http://mail.webdna.us/list/talk@webdna.us Bug Reporting: = support@webdna.us --------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.us Bug Reporting: support@webdna.us --Apple-Mail=_F950F288-3102-416A-B42E-C234E80CB614 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8
[text]eol=3D[unurl]%0D%0A[/unurl][/text]

[function = name=3D301public]
[returnraw]HTTP/1.1 301 Moved = Permanently[eol]Location: http://www.mydomain.com[link][eol][eol][/returnraw]
[/function]

[function name=3D404hard]
[returnraw]HTTP/1.0 404 Not Found[eol]Status: 404 Not = Found[eol]Content-type: = text/html[eol][eol]<html>[eol]<body>[eol]<h1>404 Not = Found</h1>[eol]The page that you have requested ([thisurl]) could = not be found.[eol]</body>[eol]</html>[/returnraw]
[/function]

[function name=3D404soft]
[returnraw]HTTP/1.0 404 Not Found[eol]Status: 404 Not = Found[eol]Content-type: text/html[eol][eol][include = file=3D/404pretty.tpl][/returnraw]
[/function]


I have 2 404 functions, = one for humans, and one for web scrappers trying to lift my 10,000 page = website. 
(no reason to waste bandwidth = showing them a whole pretty webpage)

-Brian B.


On Jan 26, 2016, at 7:57 PM, = Stuart Tremain <webdna@idfk.com.au> wrote:

I have been = reading some old posts about WSC =E2=80=98fixing=E2=80=99 the redirect = in WebDNA, 

"Functionally, "[redirect]" in WebDNA works fine, and has on = all platforms.  By default, it creates a temporary redirect, which = isn't always what you want for SEO reasons. WSC has fixed the ability to = make 301 redirects with the latest beta's in both WebDNA Server and = WebDNA FastCGI."


However I can=E2=80=99t = find any mention of it in the docs:


How do I specify a 301 = redirect as opposed to a 307 ?

What version is this available in = ?


Kind = regards

Stuart = Tremain
IDFK Web Developments
AUSTRALIA





--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.us Bug Reporting: support@webdna.us

= --Apple-Mail=_F950F288-3102-416A-B42E-C234E80CB614-- . 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)
153 --Apple-Mail=_F950F288-3102-416A-B42E-C234E80CB614 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 [text]eol=3D[unurl]%0D%0A[/unurl][/text] [function name=3D301public] [returnraw]HTTP/1.1 301 Moved Permanently[eol]Location: = http://www.mydomain.com[link][eol][eol][/returnraw] [/function] [function name=3D404hard] [returnraw]HTTP/1.0 404 Not Found[eol]Status: 404 Not = Found[eol]Content-type: text/html[eol][eol][eol][eol]

404 = Not Found

[eol]The page that you have requested ([thisurl]) could = not be found.[eol][eol][/returnraw] [/function] [function name=3D404soft] [returnraw]HTTP/1.0 404 Not Found[eol]Status: 404 Not = Found[eol]Content-type: text/html[eol][eol][include = file=3D/404pretty.tpl][/returnraw] [/function] I have 2 404 functions, one for humans, and one for web scrappers trying = to lift my 10,000 page website.=20 (no reason to waste bandwidth showing them a whole pretty webpage) -Brian B. > On Jan 26, 2016, at 7:57 PM, Stuart Tremain = wrote: >=20 > I have been reading some old posts about WSC =E2=80=98fixing=E2=80=99 = the redirect in WebDNA,=20 >=20 > "Functionally, "[redirect]" in WebDNA works fine, and has on all = platforms. By default, it creates a temporary redirect, which isn't = always what you want for SEO reasons. WSC has fixed the ability to make = 301 redirects with the latest beta's in both WebDNA Server and WebDNA = FastCGI." >=20 >=20 > However I can=E2=80=99t find any mention of it in the docs: >=20 > http://www.webdna.us/page.dna?numero=3D204 = >=20 > How do I specify a 301 redirect as opposed to a 307 ? >=20 > What version is this available in ? >=20 >=20 > Kind regards >=20 > Stuart Tremain > IDFK Web Developments > AUSTRALIA > webdna@idfk.com.au >=20 >=20 >=20 >=20 >=20 > --------------------------------------------------------- This message = is sent to you because you are subscribed to the mailing list . To = unsubscribe, E-mail to: archives: = http://mail.webdna.us/list/talk@webdna.us Bug Reporting: = support@webdna.us --------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.us Bug Reporting: support@webdna.us --Apple-Mail=_F950F288-3102-416A-B42E-C234E80CB614 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8
[text]eol=3D[unurl]%0D%0A[/unurl][/text]

[function = name=3D301public]
[returnraw]HTTP/1.1 301 Moved = Permanently[eol]Location: http://www.mydomain.com[link][eol][eol][/returnraw]
[/function]

[function name=3D404hard]
[returnraw]HTTP/1.0 404 Not Found[eol]Status: 404 Not = Found[eol]Content-type: = text/html[eol][eol]<html>[eol]<body>[eol]<h1>404 Not = Found</h1>[eol]The page that you have requested ([thisurl]) could = not be found.[eol]</body>[eol]</html>[/returnraw]
[/function]

[function name=3D404soft]
[returnraw]HTTP/1.0 404 Not Found[eol]Status: 404 Not = Found[eol]Content-type: text/html[eol][eol][include = file=3D/404pretty.tpl][/returnraw]
[/function]


I have 2 404 functions, = one for humans, and one for web scrappers trying to lift my 10,000 page = website. 
(no reason to waste bandwidth = showing them a whole pretty webpage)

-Brian B.


On Jan 26, 2016, at 7:57 PM, = Stuart Tremain <webdna@idfk.com.au> wrote:

I have been = reading some old posts about WSC =E2=80=98fixing=E2=80=99 the redirect = in WebDNA, 

"Functionally, "[redirect]" in WebDNA works fine, and has on = all platforms.  By default, it creates a temporary redirect, which = isn't always what you want for SEO reasons. WSC has fixed the ability to = make 301 redirects with the latest beta's in both WebDNA Server and = WebDNA FastCGI."


However I can=E2=80=99t = find any mention of it in the docs:


How do I specify a 301 = redirect as opposed to a 307 ?

What version is this available in = ?


Kind = regards

Stuart = Tremain
IDFK Web Developments
AUSTRALIA





--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.us Bug Reporting: support@webdna.us

= --Apple-Mail=_F950F288-3102-416A-B42E-C234E80CB614-- . Brian Burton

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:

test (2003) PIXO support (1997) Authorize.net, SIM, tcpconnect and applescript (2003) WebCat editing, SiteGuard WAS:SiteAssociative lookup style? (1997) More on the email templates (1997) Linux Beta4 problems with multirecord returns (2000) thisurl & arguments (2000) [AppendFile] problem (WebCat2b13 Mac .acgi) (1997) Sorting by date (1997) Bug alert! (1997) Waitfor file (2000) Signal Raised (1997) Frames and WebCat (1997) UPPERCASE (1997) More on the email templates (1997) Bug? (1997) time + (1998) Exists? (1997) price carry over (1997) embedding commands in form (1999)