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, thatreminds 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=3DdevI 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,DonovanOn 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:
Hi Scott,Adding to the comments...301=92s work with the current versions of WebDNA=85. but since =Christophe is taking suggestions, thatreminds 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=3DdevI 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,DonovanOn 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:
NEWBIE ? help with link (1998)
Seeking Better Display of results... (1997)
Help! WebCat2 bug (1997)
Emailer (1997)
Hosting Service (1998)
Newbie questions (1999)
CSS in HTML emails? (2003)
Re:Problem displaying search result (1997)
WebCat B13 Mac CGI -- Frames question (1997)
Nested [tags] (2001)
Spamming this list! (2000)
Setting up the server (1997)
encrypt method=APOP broken or just not enough docs? - was:MD5 encryption (2003)
File not found error message (1998)
HELP! 10K hits per hour for pages that no longer exist! (2000)
HELP WITH DATES (1997)
Auto-closing of databases (was DON'T use old cart file!) (1997)
ConverChars (1999)
E-mail Attachments (1997)
[WebDNA] Bug (2016)