Skip to content

Instantly share code, notes, and snippets.

View tonyjunkes's full-sized avatar
🍺
Cheers

Tony Junkes tonyjunkes

🍺
Cheers
View GitHub Profile
@tonyjunkes
tonyjunkes / Application.cfc
Last active December 18, 2015 23:59
Example pseudo code showing the use of FW/1 URL routes in the Application.cfc.
component extends="org.corfield.framework"
output="false"
{
/*
...Some code...
*/
VARIABLES.framework = {
routes = [
{ "/section/:value" = "/section/item/parameter/:value" } //Example - "/blog/:post" = "/blog/show/post/:post"
@tonyjunkes
tonyjunkes / .htaccess
Created June 26, 2013 05:09
.htaccess example for creating a more SES oriented URL. Replace "blog" and path info with desired string and path.
RewriteEngine On
RewriteRule ^blog/.*$ blog/show/post/$1
@tonyjunkes
tonyjunkes / .htaccess
Created June 26, 2013 01:25
Apache Mod_Rewrite .htaccess example to rewrite a FW/1 Subsystem URL to be SES and rewrite to remove index.cfm from URLs. Replace the example Subsystem (admin) with the actual Subsystem to be rewritten.
RewriteEngine On
#Rewrite FW/1 Subsystem
RewriteRule ^admin/(.*)$ index.cfm/admin:$1 [L]
#Rewrite index.cfm
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^.*\.(bmp|css|gif|htc|html?|ico|jpe?g|js|pdf|png|swf|txt|xml)$
RewriteRule ^(.*)$ index.cfm/$1 [NS]
@tonyjunkes
tonyjunkes / .htaccess
Created June 26, 2013 01:09
Apache Mod_Rewrite .htaccess example to rewrite a FW/1 Subsystem URL to be SES. Replace the example Subsystem (admin) with the actual Subsystem to be rewritten.
RewriteEngine On
RewriteRule ^admin/(.*)$ index.cfm/admin:$1 [L]
@tonyjunkes
tonyjunkes / .htaccess
Created June 25, 2013 23:11
Apache Mod_Rewrite .htaccess example to rewrite a URL to not include index.cfm
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^.*\.(bmp|css|gif|htc|html?|ico|jpe?g|js|pdf|png|swf|txt|xml)$
RewriteRule ^(.*)$ index.cfm/$1 [NS]