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 OnRewriteCond %{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:
Thanks, Donovan. Really informative forum.I got this to work:RewriteEngine OnRewriteCond %{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:
https validation (2001)
form data submission gets truncated (1997)
Sort Issue? (2000)
[search] within [listfiles]? (2003)
PSC recommends what date format yr 2000??? (1997)
WebDNA and SQL (2003)
[sendmail] and [formvariables] (1997)
Sort Order on a page search (1997)
Mac Vs WindowsNT (1997)
possible, WebCat2.0 and checkboxes-restated (1997)
WebDNA and Virtual Servers (2003)
PIXO support (1997)
is sku a REQUIRED field on NT (1997)
WebCat2b15MacPlugIn - [authenticate] not [protect] (1997)
[WebDNA] New Ownership for WebDNA! (2008)
RE: E-mailer error codes (1997)
different show next (1997)
[input] context (1999)
Questions To Answer (1997)
Use of & in text areas follow-up (1998)