Re: [WebDNA] behavior of [thisurl] in the context of 'mod_rewrite'

This WebDNA talk-list message is from

2012


It keeps the original formatting.
numero = 108526
interpreted = N
texte = --000e0cdfd8821131bc04b846f633 Content-Type: text/plain; charset=UTF-8 Govinda, Hi - finally had a chance to look at this. I'm guessing here as I haven't tested - but perhaps the problem is related to your method of using the -f and -d flags? In the .htaccess file I posted you need to specify the files, file types, and directories that are excluded, everything else is captured by the rewrite rule. Take care - Tom > This .htaccess is on my localhost web server: (note that everything works > perfect.. except for the missing [REQUEST_URI] var upon form POST.) > > > ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- > # [snip] most (and only) comments were removed here... > > > RewriteEngine On > > RewriteBase /WebdnaCodeSparkerWebsite/WCS_webRoot/ > > #Checks to see if the user is attempting to access the system folder > RewriteCond %{REQUEST_URI} ^WCS_system.* > RewriteRule ^(.*)$ /index.dna?REQUEST_URI=%{REQUEST_URI} [L] > > #Checks to see if the user is attempting to access the application > folder > RewriteCond %{REQUEST_URI} ^WCS_application.* > RewriteRule ^(.*)$ /index.dna?REQUEST_URI=%{REQUEST_URI} [L] > > #Checks to see if the user is attempting to access a valid file, > #such as an image or css document, if this isn't true it sends the > #request to index.dna > RewriteCond %{REQUEST_FILENAME} !-f > RewriteCond %{REQUEST_FILENAME} !-d > RewriteRule ^(.*)$ index.dna?REQUEST_URI=%{REQUEST_URI} [L] > > > > > # If we don't have mod_rewrite installed, all 404's > # can be sent to index.dna > ErrorDocument 404 /index.dna > > > ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- > > Thanks for taking a look > > -Govinda > --000e0cdfd8821131bc04b846f633 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Govinda,

Hi - finally had a chance to look at this. =C2= =A0 I'm guessing here as I haven't tested - but perhaps the problem= is related to your method of using the -f and -d flags?

In the .htaccess file I posted you need to specify the files, file types, a= nd directories that are excluded, everything else is captured by the rewrit= e rule.

Take care
- Tom

=C2=A0


This .htaccess is on my localhost web server: =C2=A0(note that everyt= hing works perfect.. except for the missing [REQUEST_URI] var upon form POS= T.)

---------------------------------------------------------------------------= ---------------------------------------------------------------------------= -------------------------
# [snip] most (and only) comments were removed here...

<IfModule mod_rewrite.c>
=C2=A0 =C2=A0RewriteEngine On

=C2=A0 =C2=A0RewriteBase /WebdnaCodeSparkerWebsite/WCS_webRoot/

=C2=A0 =C2=A0#Checks to see if the user is attempting to access the system= folder
=C2=A0 =C2=A0RewriteCond %{REQUEST_URI} ^WCS_system.*
=C2=A0 =C2=A0RewriteRule ^(.*)$ /index.dna?REQUEST_URI=3D%{REQUEST_URI} [L= ]

=C2=A0 =C2=A0#Checks to see if the user is attempting to access the applic= ation folder
=C2=A0 =C2=A0RewriteCond %{REQUEST_URI} ^WCS_application.*
=C2=A0 =C2=A0RewriteRule ^(.*)$ /index.dna?REQUEST_URI=3D%{REQUEST_URI} [L= ]

=C2=A0 =C2=A0#Checks to see if the user is attempting to access a valid fi= le,
=C2=A0 =C2=A0#such as an image or css document, if this isn't true it = sends the
=C2=A0 =C2=A0#request to index.dna
=C2=A0 =C2=A0RewriteCond %{REQUEST_FILENAME} !-f
=C2=A0 =C2=A0RewriteCond %{REQUEST_FILENAME} !-d
=C2=A0 =C2=A0RewriteRule ^(.*)$ index.dna?REQUEST_= URI=3D%{REQUEST_URI} [L]

</IfModule>

<IfModule !mod_rewrite.c>
=C2=A0 =C2=A0# If we don't have mod_rewrite installed, all 404's
=C2=A0 =C2=A0# can be sent to index.dna
=C2=A0 =C2=A0ErrorDocument 404 /index.dna
</IfModule>
---------------------------------------------------------------------------= ---------------------------------------------------------------------------= -------------------------

Thanks for taking a look

-Govinda
--000e0cdfd8821131bc04b846f633-- Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] behavior of [thisurl] in the context of 'mod_rewrite' (Tom Duke 2012)
  2. Re: [WebDNA] behavior of [thisurl] in the context of 'mod_rewrite' (Govinda 2012)
  3. Re: [WebDNA] behavior of [thisurl] in the context of 'mod_rewrite' (Tom Duke 2012)
  4. Re: [WebDNA] behavior of [thisurl] in the context of 'mod_rewrite' (Govinda 2012)
  5. Re: [WebDNA] behavior of [thisurl] in the context of 'mod_rewrite' (William DeVaul 2012)
  6. Re: [WebDNA] behavior of [thisurl] in the context of 'mod_rewrite' (Tom Duke 2012)
  7. Re: [WebDNA] behavior of [thisurl] in the context of 'mod_rewrite' (Govinda 2012)
  8. Re: [WebDNA] behavior of [thisurl] in the context of 'mod_rewrite' (William DeVaul 2012)
  9. Re: [WebDNA] behavior of [thisurl] in the context of 'mod_rewrite' (Govinda 2012)
  10. Re: [WebDNA] behavior of [thisurl] in the context of 'mod_rewrite' (Govinda 2012)
  11. Re: [WebDNA] behavior of [thisurl] in the context of 'mod_rewrite' (William DeVaul 2012)
  12. Re: [WebDNA] behavior of [thisurl] in the context of 'mod_rewrite' (Govinda 2012)
  13. Re: [WebDNA] behavior of [thisurl] in the context of 'mod_rewrite' (Tom Duke 2012)
  14. Re: [WebDNA] behavior of [thisurl] in the context of 'mod_rewrite' (Govinda 2012)
  15. Re: [WebDNA] behavior of [thisurl] in the context of 'mod_rewrite' (William DeVaul 2012)
  16. Re: [WebDNA] behavior of [thisurl] in the context of 'mod_rewrite' (William DeVaul 2012)
  17. Re: [WebDNA] behavior of [thisurl] in the context of 'mod_rewrite' (Donovan Brooke 2012)
  18. Re: [WebDNA] behavior of [thisurl] in the context of 'mod_rewrite' (Govinda 2012)
  19. Re: [WebDNA] behavior of [thisurl] in the context of 'mod_rewrite' (Donovan Brooke 2012)
  20. Re: [WebDNA] behavior of [thisurl] in the context of 'mod_rewrite' (William DeVaul 2012)
  21. Re: [WebDNA] behavior of [thisurl] in the context of 'mod_rewrite' (Govinda 2012)
  22. Re: [WebDNA] behavior of [thisurl] in the context of 'mod_rewrite' (Donovan Brooke 2012)
  23. Re: [WebDNA] behavior of [thisurl] in the context of 'mod_rewrite' (Govinda 2012)
  24. Re: [WebDNA] behavior of [thisurl] in the context of 'mod_rewrite' (Govinda 2012)
  25. Re: [WebDNA] behavior of [thisurl] in the context of 'mod_rewrite' (William DeVaul 2012)
  26. Re: [WebDNA] behavior of [thisurl] in the context of 'mod_rewrite' (Govinda 2012)
  27. Re: [WebDNA] behavior of [thisurl] in the context of 'mod_rewrite' (christophe.billiottet@webdna.us 2012)
  28. [WebDNA] behavior of [thisurl] in the context of 'mod_rewrite' (Govinda 2012)
--000e0cdfd8821131bc04b846f633 Content-Type: text/plain; charset=UTF-8 Govinda, Hi - finally had a chance to look at this. I'm guessing here as I haven't tested - but perhaps the problem is related to your method of using the -f and -d flags? In the .htaccess file I posted you need to specify the files, file types, and directories that are excluded, everything else is captured by the rewrite rule. Take care - Tom > This .htaccess is on my localhost web server: (note that everything works > perfect.. except for the missing [REQUEST_URI] var upon form POST.) > > > ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- > # [snip] most (and only) comments were removed here... > > > RewriteEngine On > > RewriteBase /WebdnaCodeSparkerWebsite/WCS_webRoot/ > > #Checks to see if the user is attempting to access the system folder > RewriteCond %{REQUEST_URI} ^WCS_system.* > RewriteRule ^(.*)$ /index.dna?REQUEST_URI=%{REQUEST_URI} [L] > > #Checks to see if the user is attempting to access the application > folder > RewriteCond %{REQUEST_URI} ^WCS_application.* > RewriteRule ^(.*)$ /index.dna?REQUEST_URI=%{REQUEST_URI} [L] > > #Checks to see if the user is attempting to access a valid file, > #such as an image or css document, if this isn't true it sends the > #request to index.dna > RewriteCond %{REQUEST_FILENAME} !-f > RewriteCond %{REQUEST_FILENAME} !-d > RewriteRule ^(.*)$ index.dna?REQUEST_URI=%{REQUEST_URI} [L] > > > > > # If we don't have mod_rewrite installed, all 404's > # can be sent to index.dna > ErrorDocument 404 /index.dna > > > ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- > > Thanks for taking a look > > -Govinda > --000e0cdfd8821131bc04b846f633 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Govinda,

Hi - finally had a chance to look at this. =C2= =A0 I'm guessing here as I haven't tested - but perhaps the problem= is related to your method of using the -f and -d flags?

In the .htaccess file I posted you need to specify the files, file types, a= nd directories that are excluded, everything else is captured by the rewrit= e rule.

Take care
- Tom

=C2=A0


This .htaccess is on my localhost web server: =C2=A0(note that everyt= hing works perfect.. except for the missing [REQUEST_URI] var upon form POS= T.)

---------------------------------------------------------------------------= ---------------------------------------------------------------------------= -------------------------
# [snip] most (and only) comments were removed here...

<IfModule mod_rewrite.c>
=C2=A0 =C2=A0RewriteEngine On

=C2=A0 =C2=A0RewriteBase /WebdnaCodeSparkerWebsite/WCS_webRoot/

=C2=A0 =C2=A0#Checks to see if the user is attempting to access the system= folder
=C2=A0 =C2=A0RewriteCond %{REQUEST_URI} ^WCS_system.*
=C2=A0 =C2=A0RewriteRule ^(.*)$ /index.dna?REQUEST_URI=3D%{REQUEST_URI} [L= ]

=C2=A0 =C2=A0#Checks to see if the user is attempting to access the applic= ation folder
=C2=A0 =C2=A0RewriteCond %{REQUEST_URI} ^WCS_application.*
=C2=A0 =C2=A0RewriteRule ^(.*)$ /index.dna?REQUEST_URI=3D%{REQUEST_URI} [L= ]

=C2=A0 =C2=A0#Checks to see if the user is attempting to access a valid fi= le,
=C2=A0 =C2=A0#such as an image or css document, if this isn't true it = sends the
=C2=A0 =C2=A0#request to index.dna
=C2=A0 =C2=A0RewriteCond %{REQUEST_FILENAME} !-f
=C2=A0 =C2=A0RewriteCond %{REQUEST_FILENAME} !-d
=C2=A0 =C2=A0RewriteRule ^(.*)$ index.dna?REQUEST_= URI=3D%{REQUEST_URI} [L]

</IfModule>

<IfModule !mod_rewrite.c>
=C2=A0 =C2=A0# If we don't have mod_rewrite installed, all 404's
=C2=A0 =C2=A0# can be sent to index.dna
=C2=A0 =C2=A0ErrorDocument 404 /index.dna
</IfModule>
---------------------------------------------------------------------------= ---------------------------------------------------------------------------= -------------------------

Thanks for taking a look

-Govinda
--000e0cdfd8821131bc04b846f633-- Tom Duke

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:

Emailer (1997) wierd crashes for multi-sendmails on NT (1997) WebCat name recognition (1998) What happens to an include when a template gets encrypted? (2005) What is wrong here? (2000) If Empty ? (1997) WebCat2 - [format thousands] (1997) Latin Characters (1998) WebCat2b13MacPlugin - [math][date][/math] problem (1997) [ShowIf] and empty fields (1997) WebDNA quitting (2008) Some Questions (1997) PIXO support (1997) Uh...can someone help me out with the b10? (1997) Roundup (2001) Better Stability, Better Performance, Bugs are dead/ Gone (2000) Customer (1998) Running _every_ page through WebCat ? (1997) RequiredFields template (1997) Setting up WebCatalog with Retail Pro data (1996)