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:

Authenticate (1997) Search inside Include (1998) RE: Problems with shopping cart (1997) simple answer? [hideif] (1997) WC2b15 File Corruption (1997) Pull Down Search (2000) [OT] MacOs IE5 topmargin and leftmargin bug (2000) problems with 2 tags (1997) [WebDNA] Search comparisons in 8.6.1 (2019) Need relative path explanation (1997) Protecting Realms (was: IIS Brain Dead) (1998) [BoldWords] WebCat.acgib15Mac (1997) shipcost (1997) MOD_REWRITE Search Engine Friendly URLs (2008) WebDNA 5 - Privacy Issue (Built in sniffer) (2003) WebCat2: Items xx to xx shown, etc. (1997) Crash Log Question (2006) Possible Bug in 2.0b15.acgi (1997) Logging users (1998) A multi-processor savvy WebCatalog? (1997)