...
Code Block |
---|
##### APACHE VERSION
RewriteEngine On
RewriteCond %{REQUEST_URI} !(/farcry|/webtop|/flex2gateway|/flashservices)
RewriteRule ^([a-zA-Z0-9\/\-\%:\[\]\{\}\|\;\<\>\?\,\*\!\@\#\$\ \(\)\^_`~]*)$ /index.cfm?furl=$1 [L,PT,QSA]
|
For IIS you will need to install an ISAPI Rewrite dll and use the following redirect
Code Block |
---|
########## IIS VERSION #RewriteCondRewriteCond %{QUERY_STRING} ^(.*)$ #RewriteRule RewriteCond %{REQUEST_URI} !(/farcry|/webtop|/flex2gateway|/flashservices) RewriteRule ^(.*)$ /index.cfm?furl=$1&%1 |
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). |
For Example
Browser Address | Server Address |
---|---|
Not Redirected | |
http::/localhost/index.cfm?furl=/my-cool-page | |
http://localhost/my-cool-page/and-its-cool-subpage | http://localhost/index.cfm?furl=/my-cool-page/and-its-cool-subpage |
http://localhost/another-fu?page=5 |
...