Re: URL problem

This WebDNA talk-list message is from

2007


It keeps the original formatting.
numero = 68417
interpreted = N
texte = 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 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)
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 Web Archive of this list is at: http://webdna.smithmicro.com/ 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:

Who is doing sign-ups-got it (1998) default value from Lookup (was Grant, please help me) (1997) t or f (1997) [random] only for 1-100??? (1997) [movefile] (1999) Emailer file formats (1998) Server Jumping and Web-networking (2000) [format xs] freeze (1997) DB Size - MAX (2004) wo search help (1999) RE:DatabaseHelper (1997) Uh...can someone help me out with the b10? (1997) counting characters and/or words (1997) date (1999) syntax question, not in online refernce (1997) wrong authentication (1998) unable to launch acgi in WebCat (1997) For those of you not on the WebCatalog Beta... (1997) [item] appears after 'remove last item' ... (1997) RE: major search problem (1998)