Re: [WebDNA] 301 redirect

This WebDNA talk-list message is from

2016


It keeps the original formatting.
numero = 112572
interpreted = N
texte = 154 --Apple-Mail=_09FD636D-7732-4ABD-AAFD-EC7419105B2A Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Thanks very much for your input Brian. Kind regards Stuart Tremain IDFK Web Developments AUSTRALIA webdna@idfk.com.au > On 28 Jan 2016, at 03:06, Brian Burton wrote: >=20 > [text]eol=3D[unurl]%0D%0A[/unurl][/text] >=20 > [function name=3D301public] > [returnraw]HTTP/1.1 301 Moved Permanently[eol]Location: = http://www.mydomain.com[link][eol][eol][/returnraw] = > [/function] >=20 > [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] >=20 > [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] >=20 >=20 > 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) >=20 > -Brian B. >=20 >=20 >> 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=_09FD636D-7732-4ABD-AAFD-EC7419105B2A Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Thanks very much for your input Brian.


Kind regards

Stuart Tremain
IDFK Web Developments
AUSTRALIA





On 28 Jan 2016, at 03:06, Brian Burton <brian@burtons.com> = wrote:

[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=_09FD636D-7732-4ABD-AAFD-EC7419105B2A-- . 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)
154 --Apple-Mail=_09FD636D-7732-4ABD-AAFD-EC7419105B2A Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Thanks very much for your input Brian. Kind regards Stuart Tremain IDFK Web Developments AUSTRALIA webdna@idfk.com.au > On 28 Jan 2016, at 03:06, Brian Burton wrote: >=20 > [text]eol=3D[unurl]%0D%0A[/unurl][/text] >=20 > [function name=3D301public] > [returnraw]HTTP/1.1 301 Moved Permanently[eol]Location: = http://www.mydomain.com[link][eol][eol][/returnraw] = > [/function] >=20 > [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] >=20 > [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] >=20 >=20 > 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) >=20 > -Brian B. >=20 >=20 >> 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=_09FD636D-7732-4ABD-AAFD-EC7419105B2A Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Thanks very much for your input Brian.


Kind regards

Stuart Tremain
IDFK Web Developments
AUSTRALIA





On 28 Jan 2016, at 03:06, Brian Burton <brian@burtons.com> = wrote:

[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=_09FD636D-7732-4ABD-AAFD-EC7419105B2A-- . Stuart Tremain

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:

faxing orders (2000) WCS Newbie question (1997) ListWords passing multi values in one form field (2000) Setting Cart value (2000) Urgent Help needed (1998) Field Problem (2000) Country & Ship-to address & other fields ? (1997) F2 to F3 rocky transition (1997) Frames and WebCat (1997) drop down menu (2000) Big Databases (1997) F3 crashing server (1997) Nested ListFiles (1998) Date problems (1997) WebCat2b13MacPlugin - nested [xxx] contexts (1997) Error Lob.db records error message not name (1997) [delete] problem (1997) File Upload (1997) Ampersand (1997) So Simple (2005)