Re: redirect within the ErrorMessages.db

This WebDNA talk-list message is from

2003


It keeps the original formatting.
numero = 54600
interpreted = N
texte = >Hello, > >I am trying to allow for a 'simple' URL for member pages on my site e.g. >www.domain.tld/members/username/ > >In an attempt to accomplish this, I have added the following (without line breaks) to process the URL and do a redirect to the proper URL. With this code, I get the proper membername, but the redirect never happens. Try this: [showif [thisurl]^members] [ListWords Words=[thisurl]&Delimiters=/][showif [index]=3][text show=f]mbr_name=[word][/text][/showif][/ListWords] [mbr_name] (for verification purposes) [search db=/databases/members.db&eqMemberNamedatarq=[mbr_name]] [hideif [numfound]=0] [founditems] [REDIRECT url=http://www.domain.tld/profiles/details.html?record_id=[record_id]] [/founditems] [/hideif] [showif [numfound]=0] redirect to some other page [/showif] [/search] [/showif] ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: redirect within the ErrorMessages.db ( Stuart Tremain 2003)
  2. Re: redirect within the ErrorMessages.db ( CN Stuff 2003)
  3. Re: redirect within the ErrorMessages.db ( CN Stuff 2003)
  4. Re: redirect within the ErrorMessages.db ( Glenn Busbin 2003)
  5. Re: redirect within the ErrorMessages.db ( Donovan Brooke 2003)
  6. redirect within the ErrorMessages.db ( CN Stuff 2003)
>Hello, > >I am trying to allow for a 'simple' URL for member pages on my site e.g. >www.domain.tld/members/username/ > >In an attempt to accomplish this, I have added the following (without line breaks) to process the URL and do a redirect to the proper URL. With this code, I get the proper membername, but the redirect never happens. Try this: [showif [thisurl]^members] [ListWords Words=[thisurl]&Delimiters=/][showif [index]=3][text show=f]mbr_name=[word][/text][/showif][/ListWords] [mbr_name] (for verification purposes) [search db=/databases/members.db&eqMemberNamedatarq=[mbr_name]] [hideif [numfound]=0] [founditems] [REDIRECT url=http://www.domain.tld/profiles/details.html?record_id=[record_id]] [/founditems] [/hideif] [showif [numfound]=0] redirect to some other page [/showif] [/search] [/showif] ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Glenn Busbin

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:

WebCatalog can't find database (1997) Search Order? (2000) Re:listfiles-looking for slick solution (1997) Price written to db as scientific notation??? (1999) WebCat2: Items xx to xx shown, etc. (1997) HTTP header line is too long? (1997) debit cards and checksum (1998) Math Problem - Format? (1997) difference between v.6 and v.7, WAS: [WebDNA] v7 thisurl has different behavour (2012) Need relative path explanation (1997) [OT] (waaaay OT) (2004) [Price] (1997) WebCat2b13 Mac plugin - [sendmail] and checkboxes (1997) [WebDNA] SendMail Problems, 453 (2016) emailer on Windows Beta 18 (1997) [Math] Problem!!!! (2004) Document Contains No Data! (1997) off topic - dna snipets (1997) URGENT: NO BUG, woFIELDdata & FIELDword=ww (2002) [include file=filename.inc&strip=t] (2002)