...
Part 1. Friendly URL String
This is done by having including the .htaccess file following in your webroot apache virtual or conf (Apache Only):
Code Block |
---|
<IfModule mod_rewrite.c> ##### APACHE VERSION RewriteEngine On RewriteRule ^([a-zA-Z0-9\/\-\%:\[\]\{\}\|\;\<\>\?\,\*\!\@\#\$\ \(\)\^_`~]*)$ /index.cfm?furl=/$1 [L,PT,QSA] </IfModule> |
For IIS you will need to install an ISAPI Rewrite dll and use the following redirect
Code Block |
---|
##### IIS VERSION #RewriteCond %{QUERY_STRING} ^(.*)$ #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). |
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 |
...