Re: URL problem

This WebDNA talk-list message is from

2007


It keeps the original formatting.
numero = 68418
interpreted = N
texte = Thanks, Donovan. Really informative forum. I got this to work: RewriteEngine On RewriteCond %{REQUEST_URI} !\.(swf|tpl|gif|jpg|css|ico|js|db|flv|mov) RewriteRule ^(.+)$ index.tpl?requestedurl=%{REQUEST_URI} [L] Puts [requestedurl] onto the index page for WebDNA parsing. I thought I was loosing my ming until I finally remembered to include swf as a RewriteCond. Safari has cache schizophrenia which was testing my sanity already. For anyone else facing this challenge ,the RewriteCond statement, above is wildly important. You need to restrict the rewrite to very specific pages, otherwise it rewrites everything, images, flash files, etc. In my case, I'm passing variables to an embedded Flash. Thanks to everyone who helped me with this. This list is a big part of WebDNA's value. On Feb 5, 2007, at 9:08 AM, Donovan Brooke wrote: > Pat McCormick wrote: > >> Thanks, Tom >> I need to rewrite any URL containing an underscore (_) and without >> an extension (tpl|gif|jpg|png|css|ico) so that it lands on >> index.tpl and passes the original requested URL to index.tpl. >> Will this work? >> RewriteEngine On >> RewriteCond %{REQUEST_URI} !index\.tpl >> RewriteCond %{REQUEST_URI} !\.(tpl|gif|jpg|png|css|ico) >> RewriteRule ^_ /index.tpl?requestedurl=%{REQUEST_URI} [L] > > > Pat, I just joined this forum a while ago: > > http://forum.modrewrite.com/ > > Donovan > > > > > -- > =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o > DONOVAN D. BROOKE EUCA Design Center > <- Web Development (specializing in eCommerce),-> > <- Desktop Publishing, Print Consulting, Labels -> > <-Glass Products, off-hand Classes/studio rental-> > > PH:> (608) 835-2476 | Forum:> http://egg.bz/forum/ > Web Sites:> http://www.euca.us & http://www.egg.bz > =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o > > ------------------------------------------------------------- > 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 digest@talk.smithmicro.com> > Web Archive of this list is at: http://webdna.smithmicro.com/ > ------------------------------------------------------------- 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: URL problem ( Pat McCormick 2007)
  2. Re: URL problem ( Donovan Brooke 2007)
  3. Re: URL problem ( "Dan Strong" 2007)
  4. Re: URL problem ( Pat McCormick 2007)
  5. Re: URL problem ( "Tom Duke" 2007)
  6. Re: URL problem ( Pat McCormick 2007)
  7. Re: URL problem ( Stuart Tremain 2007)
  8. Re: URL problem ( Pat McCormick 2007)
  9. Re: URL problem ( Pat McCormick 2007)
  10. Re: URL problem ( Pat McCormick 2007)
  11. Re: URL problem ( "Tom Duke" 2007)
  12. Re: URL problem ( Stuart Tremain 2007)
  13. URL problem ( Pat McCormick 2007)
  14. Strange variable in url problem... (Jimmi Kristensen 2001)
Thanks, Donovan. Really informative forum. I got this to work: RewriteEngine On RewriteCond %{REQUEST_URI} !\.(swf|tpl|gif|jpg|css|ico|js|db|flv|mov) RewriteRule ^(.+)$ index.tpl?requestedurl=%{REQUEST_URI} [L] Puts [requestedurl] onto the index page for WebDNA parsing. I thought I was loosing my ming until I finally remembered to include swf as a RewriteCond. Safari has cache schizophrenia which was testing my sanity already. For anyone else facing this challenge ,the RewriteCond statement, above is wildly important. You need to restrict the rewrite to very specific pages, otherwise it rewrites everything, images, flash files, etc. In my case, I'm passing variables to an embedded Flash. Thanks to everyone who helped me with this. This list is a big part of WebDNA's value. On Feb 5, 2007, at 9:08 AM, Donovan Brooke wrote: > Pat McCormick wrote: > >> Thanks, Tom >> I need to rewrite any URL containing an underscore (_) and without >> an extension (tpl|gif|jpg|png|css|ico) so that it lands on >> index.tpl and passes the original requested URL to index.tpl. >> Will this work? >> RewriteEngine On >> RewriteCond %{REQUEST_URI} !index\.tpl >> RewriteCond %{REQUEST_URI} !\.(tpl|gif|jpg|png|css|ico) >> RewriteRule ^_ /index.tpl?requestedurl=%{REQUEST_URI} [L] > > > Pat, I just joined this forum a while ago: > > http://forum.modrewrite.com/ > > Donovan > > > > > -- > =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o > DONOVAN D. BROOKE EUCA Design Center > <- Web Development (specializing in eCommerce),-> > <- Desktop Publishing, Print Consulting, Labels -> > <-Glass Products, off-hand Classes/studio rental-> > > PH:> (608) 835-2476 | Forum:> http://egg.bz/forum/ > Web Sites:> http://www.euca.us & http://www.egg.bz > =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o > > ------------------------------------------------------------- > 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 digest@talk.smithmicro.com> > Web Archive of this list is at: http://webdna.smithmicro.com/ > ------------------------------------------------------------- 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/ Pat McCormick

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:

problems with 2 tags (1997) RE: creating writefile data from a nested search (1997) RequiredFields notes ... (1997) URGENT! Locked DB's (2001) Plugin or CGI or both (1997) interesting (2003) Calculating multiple shipping... (1997) Re:Searching for ALL / empty form field (1997) WebCat2b13MacPlugin - nested [xxx] contexts (1997) Disappearing Databases (2000) [WebDNA] [thisurlplusget] not working (2012) Multiple Hideif peramiters (2001) What might be the cause for a hicup (2000) [WebDNA] Set a cookie via setmimeheader? (2014) [URL] and [showif] or [hideif] comparisons (2003) Too Much Rootbeer Free Offer (1997) decrypt and summ problems (1999) [WebDNA] WebDNA 7 (2011) WC Database Format (1997) formula part 3 (2000)