Re: [WebDNA] Correct 301 codes

This WebDNA talk-list message is from

2015


It keeps the original formatting.
numero = 112040
interpreted = N
texte = Hi Thanks for the reply, I have also come to this conclusion although I = can=E2=80=99t seem to get it to work. I currently use this in my = htaccess file. RewriteEngine On=20 RewriteRule ^([A-Za-z0-9-]+)/?$ = /our-log-cabins/default.html?permalinkvar=3D$1 [NC,L] This all works fine and I get the clean url=E2=80=99s I need eg=E2=80=A6 = http://www.forestlogcabins.com/our-log-cabins/FPL6002-10m-Sloping-Wall-BBQ= -Hut 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 = http://www.forestlogcabins.com/our-log-cabins/default.html?permalinkvar=3D= FPL6002-10m-Sloping-Wall-BBQ-Hut I have tried it as [R=3D301,NC,L] [NC,R=3D301,L] [NC,L,R=3D301] 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. 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 > 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 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 Thanks for the reply, I have also come to this conclusion although I = can=E2=80=99t seem to get it to work. I currently use this in my = htaccess file. RewriteEngine On=20 RewriteRule ^([A-Za-z0-9-]+)/?$ = /our-log-cabins/default.html?permalinkvar=3D$1 [NC,L] This all works fine and I get the clean url=E2=80=99s I need eg=E2=80=A6 = http://www.forestlogcabins.com/our-log-cabins/FPL6002-10m-Sloping-Wall-BBQ= -Hut 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 = http://www.forestlogcabins.com/our-log-cabins/default.html?permalinkvar=3D= FPL6002-10m-Sloping-Wall-BBQ-Hut I have tried it as [R=3D301,NC,L] [NC,R=3D301,L] [NC,L,R=3D301] 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. 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 > 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 Steve Craig

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:

Online docs errata (2000) WebDNA 5.1 is now available! (2003) results in a table (2000) WebDNA and SQL (2003) Re2: frames & carts (1997) wee problem (2001) NT Version on IIS 4.0 (1997) WebCat consulting $ (1998) [append] and SSL (1997) MySQL and Numbers (2005) Under Score (1999) Bug or syntax error on my part? (1997) Sorting Numbers (1997) PSC recommends what date format yr 2000??? (1997) Protect (1997) Dates (1996) Deleting Cookie Problems (2007) One more time (1997) Wild WebCat 98 Contest! (1998) [isfile] ? (1997)