Re: urls
This WebDNA talk-list message is from 2005
It keeps the original formatting.
numero = 63515
interpreted = N
texte = There's a nice cheat sheet for mod_rewrite (and others) here:http://www.ilovejackdaniels.com/cheat-sheets/On 11/30/05 10:06 AM, "Nitai @ ComputerOil"
wrote:> Ok, but the problem might bet hat there is a "not known" number of variables> in the URL. What to do then?> > Nitai> > PS: We rather use a WebDNA way for doing this and just wondering how> mod_rewrite would do it.> > >> -----Original Message----->> From: WebDNA Talk [mailto:WebDNA-Talk@talk.smithmicro.com] On Behalf Of>> devaulw@onebox.com>> Sent: Mittwoch, 30. November 2005 17:01>> To: WebDNA Talk>> Subject: Re: urls>> >> What about something like:>> >> RewriteRule ^/article((((/[^/]+)))) article.tpl?1=$1&2=$2&3=$3&4=$4>> >> ?>> >> -----Original Message----->> From: Nitai @ ComputerOil >> Sent: Wed, 30 Nov 2005 16:42:37 +0100>> To: "WebDNA Talk" >> Subject: Re: urls>> >> So I need to remove all dollars signs then?>> >> Nitai>> >> >>> -----Original Message----->>> From: WebDNA Talk [mailto:WebDNA-Talk@talk.smithmicro.com] On Behalf Of>>> Clint Davis>>> Sent: Mittwoch, 30. November 2005 15:51>>> To: WebDNA Talk>>> Subject: Re: urls>>> >>> I believe so. You need to remove the first dollar sign though as it>>> indicates and end-of-line.>>> >>> >>> On 11/30/05 8:08 AM, "Nitai @ ComputerOil" >> wrote:>>> >>>> So a URL like this:>>>> >>>> domain.com/articles/123/1/show/now>>>> >>>> and with this:>>>> >>>> RewriteRule ^/articles/([0-9]+)$/([0-9]+)$/([a-z][0-9]+)$/([a-z][0->>> 9]+)$/>>>> article.tpl?ID=$1〈=$2&action=$3&show=$4>>>> >>>> Will work?>>>> >>>> Nitai>>>> >>>> >>>>> -----Original Message----->>>>> From: WebDNA Talk [mailto:WebDNA-Talk@talk.smithmicro.com] On Behalf>> Of>>>>> Clint Davis>>>>> Sent: Mittwoch, 30. November 2005 15:01>>>>> To: WebDNA Talk>>>>> Subject: Re: urls>>>>> >>>>> The rewrite rule below will change this:>>>>> domain.com/articles/123>>>>> >>>>> ...into this:>>>>> domain.com/article.tpl?ID=123>>>>> >>>>> ...and reflect the change in the browsers address bar.>>>>> >>>>> RewriteEngine on>>>>> RewriteRule ^/articles/([0-9]+)$ /article.tpl?ID=$1 [R]>>>>> >>>>> >>>>> >>>>> On 11/29/05 1:58 AM, "kalin mintchev" wrote:>>>>> >>>>>> just curious.. has somebody played with mod_rewrite to make urls>>> more>>>>>> 'search engine friendly' or just to hide stuff...-------------------------------------------------------------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:
There's a nice cheat sheet for mod_rewrite (and others) here:http://www.ilovejackdaniels.com/cheat-sheets/On 11/30/05 10:06 AM, "Nitai @ ComputerOil" wrote:> Ok, but the problem might bet hat there is a "not known" number of variables> in the URL. What to do then?> > Nitai> > PS: We rather use a WebDNA way for doing this and just wondering how> mod_rewrite would do it.> > >> -----Original Message----->> From: WebDNA Talk [mailto:WebDNA-Talk@talk.smithmicro.com] On Behalf Of>> devaulw@onebox.com>> Sent: Mittwoch, 30. November 2005 17:01>> To: WebDNA Talk>> Subject: Re: urls>> >> What about something like:>> >> RewriteRule ^/article((((/[^/]+)))) article.tpl?1=$1&2=$2&3=$3&4=$4>> >> ?>> >> -----Original Message----->> From: Nitai @ ComputerOil >> Sent: Wed, 30 Nov 2005 16:42:37 +0100>> To: "WebDNA Talk" >> Subject: Re: urls>> >> So I need to remove all dollars signs then?>> >> Nitai>> >> >>> -----Original Message----->>> From: WebDNA Talk [mailto:WebDNA-Talk@talk.smithmicro.com] On Behalf Of>>> Clint Davis>>> Sent: Mittwoch, 30. November 2005 15:51>>> To: WebDNA Talk>>> Subject: Re: urls>>> >>> I believe so. You need to remove the first dollar sign though as it>>> indicates and end-of-line.>>> >>> >>> On 11/30/05 8:08 AM, "Nitai @ ComputerOil" >> wrote:>>> >>>> So a URL like this:>>>> >>>> domain.com/articles/123/1/show/now>>>> >>>> and with this:>>>> >>>> RewriteRule ^/articles/([0-9]+)$/([0-9]+)$/([a-z][0-9]+)$/([a-z][0->>> 9]+)$/>>>> article.tpl?ID=$1〈=$2&action=$3&show=$4>>>> >>>> Will work?>>>> >>>> Nitai>>>> >>>> >>>>> -----Original Message----->>>>> From: WebDNA Talk [mailto:WebDNA-Talk@talk.smithmicro.com] On Behalf>> Of>>>>> Clint Davis>>>>> Sent: Mittwoch, 30. November 2005 15:01>>>>> To: WebDNA Talk>>>>> Subject: Re: urls>>>>> >>>>> The rewrite rule below will change this:>>>>> domain.com/articles/123>>>>> >>>>> ...into this:>>>>> domain.com/article.tpl?ID=123>>>>> >>>>> ...and reflect the change in the browsers address bar.>>>>> >>>>> RewriteEngine on>>>>> RewriteRule ^/articles/([0-9]+)$ /article.tpl?ID=$1 [R]>>>>> >>>>> >>>>> >>>>> On 11/29/05 1:58 AM, "kalin mintchev" wrote:>>>>> >>>>>> just curious.. has somebody played with mod_rewrite to make urls>>> more>>>>>> 'search engine friendly' or just to hide stuff...-------------------------------------------------------------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/
Clint Davis
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:
Writefile outside WebSTAR hierarchy? (1997)
[UPPERCASE] (1997)
WebCatalog can't find database (1997)
Out of the woodwork (2007)
searching problem (1998)
Authenticate (1997)
I have observed and I am gone. (1998)
[WebDNA] Still having problems (2008)
Mass download. (2003)
NT based White paper (2003)
Help name our technology! (1997)
WEBDNA tags don't process in a .js file (2002)
The beginning (1997)
How is it done? (1998)
$Quit, $CloseDatabase corrections (1997)
Showcart in [include] (1999)
frames & carts (1997)
WC2.0 Memory Requirements (1997)
Sort Order on a page search (1997)
[BoldWords WordList]Any Text[/BoldWords] (2000)