Re: [WebDNA] Correct 301 codes

This WebDNA talk-list message is from

2015


It keeps the original formatting.
numero = 112041
interpreted = N
texte = Hi Scott, Adding to the comments... 301=92s work with the current versions of WebDNA=85. but since = Christophe is taking suggestions, that reminds me that it would be great to use WebDNA=92s internal redirect = with an optional 301=85 something like: [redirect url=3D[url][/url]&permanent=3DT][/redirect] Or maybe: [redirect301 url=3D[url][/url]]blah[/redirect] For now, perhaps an easy way to do them is to use my old function = library located here: http://dev.euca.us/index.html?ra=3D589096&page=3Ddev I don=92t think that old link is my latest iteration of that library, = but it should work=85 just use: [euca_301redirect goto=3D[url][/url]] Sincerely, Donovan On Jan 26, 2015, at 6:23 AM, Steve Craig wrote: > Hi >=20 > Thanks for the reply, I have also come to this conclusion although I = can=92t seem to get it to work. I currently use this in my htaccess = file. >=20 > RewriteEngine On=20 > RewriteRule ^([A-Za-z0-9-]+)/?$ = /our-log-cabins/default.html?permalinkvar=3D$1 [NC,L] >=20 > This all works fine and I get the clean url=92s I need eg=85 >=20 > = http://www.forestlogcabins.com/our-log-cabins/FPL6002-10m-Sloping-Wall-BBQ= -Hut >=20 > If I add the R=3D301 to the [NC,L] bit it seems to break the redirect = and I end up with a url that adds=20 >=20 > = http://www.forestlogcabins.com/our-log-cabins/default.html?permalinkvar=3D= FPL6002-10m-Sloping-Wall-BBQ-Hut >=20 > I have tried it as >=20 > [R=3D301,NC,L] > [NC,R=3D301,L] > [NC,L,R=3D301] >=20 > and none of them seem to work, I must admit this is the first time I = have used mod_rewrite so I stumbling in the dark a bit. >=20 > Cheers > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > Steve Craig - Asylum Interactive > Tel +44 1330 860550 > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > http://www.asylumweb.com > Email: steve@asylumweb.com > Skype: s.craig - iChat: steve.craig > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >=20 >=20 >=20 >> On 26 Jan 2015, at 00:45, Dan Strong wrote: >>=20 >> I prefer to do this via .htaccess >>=20 >> Redirect 301 oldpage.html http:// domain.com/newpage.html >>=20 >> ------------------------------------ >> Sent from phone >>=20 >> -Dan Strong >> http://DanStrong.com >>=20 >> On Jan 25, 2015 2:48 PM, "Steve Craig" wrote: >> Hi >>=20 >> I have gradually been re-coding my site to get rid of some url = variables and some other stuff to make it a little more google friendly. >>=20 >> I have a page which will catch all the old site links from google and = redirect to new urls for a while however it is doing it with a 302 code = and I would prefer to give google a proper 301 Moved Permanently code. >>=20 >> Is this actually necessary or possible and if so how? >>=20 >> Any help much appreciated. >>=20 >> Cheers >> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >> Steve Craig - Asylum Interactive >> Tel +44 1330 860550 >> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >> http://www.asylumweb.com >> Email: steve@asylumweb.com >> Skype: s.craig - iChat: steve.craig >> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >>=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 >=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 Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] Correct 301 codes (Stuart Tremain 2015)
  2. Re: [WebDNA] Correct 301 codes (Donovan Brooke 2015)
  3. Re: [WebDNA] Correct 301 codes (Steve Craig 2015)
  4. Re: [WebDNA] Correct 301 codes (Donovan Brooke 2015)
  5. Re: [WebDNA] Correct 301 codes (Steve Craig 2015)
  6. Re: [WebDNA] Correct 301 codes (Dan Strong 2015)
  7. [WebDNA] Correct 301 codes (Steve Craig 2015)
Hi Scott, Adding to the comments... 301=92s work with the current versions of WebDNA=85. but since = Christophe is taking suggestions, that reminds me that it would be great to use WebDNA=92s internal redirect = with an optional 301=85 something like: [redirect url=3D[url][/url]&permanent=3DT][/redirect] Or maybe: [redirect301 url=3D[url][/url]]blah[/redirect] For now, perhaps an easy way to do them is to use my old function = library located here: http://dev.euca.us/index.html?ra=3D589096&page=3Ddev I don=92t think that old link is my latest iteration of that library, = but it should work=85 just use: [euca_301redirect goto=3D[url][/url]] Sincerely, Donovan On Jan 26, 2015, at 6:23 AM, Steve Craig wrote: > Hi >=20 > Thanks for the reply, I have also come to this conclusion although I = can=92t seem to get it to work. I currently use this in my htaccess = file. >=20 > RewriteEngine On=20 > RewriteRule ^([A-Za-z0-9-]+)/?$ = /our-log-cabins/default.html?permalinkvar=3D$1 [NC,L] >=20 > This all works fine and I get the clean url=92s I need eg=85 >=20 > = http://www.forestlogcabins.com/our-log-cabins/FPL6002-10m-Sloping-Wall-BBQ= -Hut >=20 > If I add the R=3D301 to the [NC,L] bit it seems to break the redirect = and I end up with a url that adds=20 >=20 > = http://www.forestlogcabins.com/our-log-cabins/default.html?permalinkvar=3D= FPL6002-10m-Sloping-Wall-BBQ-Hut >=20 > I have tried it as >=20 > [R=3D301,NC,L] > [NC,R=3D301,L] > [NC,L,R=3D301] >=20 > and none of them seem to work, I must admit this is the first time I = have used mod_rewrite so I stumbling in the dark a bit. >=20 > Cheers > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > Steve Craig - Asylum Interactive > Tel +44 1330 860550 > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > http://www.asylumweb.com > Email: steve@asylumweb.com > Skype: s.craig - iChat: steve.craig > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >=20 >=20 >=20 >> On 26 Jan 2015, at 00:45, Dan Strong wrote: >>=20 >> I prefer to do this via .htaccess >>=20 >> Redirect 301 oldpage.html http:// domain.com/newpage.html >>=20 >> ------------------------------------ >> Sent from phone >>=20 >> -Dan Strong >> http://DanStrong.com >>=20 >> On Jan 25, 2015 2:48 PM, "Steve Craig" wrote: >> Hi >>=20 >> I have gradually been re-coding my site to get rid of some url = variables and some other stuff to make it a little more google friendly. >>=20 >> I have a page which will catch all the old site links from google and = redirect to new urls for a while however it is doing it with a 302 code = and I would prefer to give google a proper 301 Moved Permanently code. >>=20 >> Is this actually necessary or possible and if so how? >>=20 >> Any help much appreciated. >>=20 >> Cheers >> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >> Steve Craig - Asylum Interactive >> Tel +44 1330 860550 >> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >> http://www.asylumweb.com >> Email: steve@asylumweb.com >> Skype: s.craig - iChat: steve.craig >> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >>=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 >=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 Donovan Brooke

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:

Help! WebCat2 bug (1997) Setting a text Var inside an orderfile (2002) Purchase command error problem (1997) tag request (1999) Template not completely processed (1998) Text data with spaces in them... (1997) Re:WebCatalog/WebMerchant III (1998) NT IIS number of files limit (2003) WebMerchant/MacAuthorize (1998) RE: shrink-wrapped version out yet? (1997) Need help with emailer- 2 issues (1997) [WebDNA] Shopping cart code debug (2009) Sorting problem (2002) [OT] Java Servlet Q (2002) [OT] Indexing of dynamic web sites (2003) [WebDNA] WebDNA on PowerPC Leopard Server (2009) Weird problems with [SHOWIF]s (1997) [showif] not working (2003) Not really WebCat (1997) Reversed words (1997)