Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
##### IIS VERSION
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteCond %{REQUEST_URI} !(/farcry|/webtop|/flex2gateway|/flashservices)($|/)
RewriteRule ^(.*)$ /index.cfm?furl=$1&%1

Here is an example of how you would set up the rewrite for a sub-directory installation. Notice that the RewriteRule specifies the subdirectories at the start, and redirects to that subdirectory in the rewrite.

Code Block

##### APACHE VERSION
RewriteEngine On
RewriteCond %{REQUEST_URI} !(/farcry|/webtop|/flex2gateway|/flashservices)($|/)
RewriteRule ^/(subdirectory1|subdirectory2)([a-zA-Z0-9\/\-\%:\[\]\{\}\|\;\<\>\?\,\*\!\@\#\$\ \(\)\^_`~]*)$ /$1/index.cfm?furl=$2 [L,PT,QSA]
Info

This essentially redirects to the index.cfm any url without a "." in it (ie, index.cfm, main.css, fotm.js) and not under the folders specified in the exception (/farcry, /webtop, /flex2gateway, /flashservices).

...