I have Coldbox running on Railo 4.1, Windows 7 with Apache.
The rewriting works but when I go to the url (ex http://localhost/contacts/editor) I get the default page, nothing changes. I’ve gone through the SES docs and followed the instructions. Can’t figure out whats wrong, tried fwrenint and restarting railo.
Files below: Config, Routes, Htaccess
Help appreciated
Here is my config:
component{
// Configure ColdBox Application
function configure(){// coldbox directives
coldbox = {
//Application Setup
appName = “ColdBox LITE Contact Manager”,//Development Settings
reinitPassword = “”,
handlersIndexAutoReload = true,//Implicit Events
defaultEvent = “contacts.index”,
requestStartHandler = “”,
requestEndHandler = “”,
applicationStartHandler = “”,
applicationEndHandler = “”,
sessionStartHandler = “”,
sessionEndHandler = “”,
missingTemplateHandler = “”,//Error/Exception Handling
exceptionHandler = “”,
onInvalidEvent = “”,
customErrorTemplate = “includes/error.cfm”,//Application Aspects
handlerCaching = false,interceptors =
{
class=“coldbox.system.interceptors.SES”,
properties =
{
configFile = “config/Routes.cfm”
}
}
};/**
// custom settings
settings = {
};
// environment settings, create a detectEnvironment() method to detect it yourself.
// create a function with the name of the environment so it can be executed if that environment is detected
// the value of the environment is a list of regex patterns to match the cgi.http_host.
environments = {
//development = “^cf8.,^railo.”
};// Layout Settings
layoutSettings = {
defaultLayout = “”
};//Register Layouts
layouts = [
{ name = “login”,
file = “Layout.tester.cfm”,
views = “vwLogin,test”,
folders = “tags,pdf/single”
}
];*/
}}
Here is my htaccess:
Bypass call related to adminstrators or non rewrite folders, you can add more here.
RewriteCond %{REQUEST_URI} ^/(.(CFIDE|cfide|CFFormGateway|jrunscripts|railo-context|mapping-tag|fckeditor)).$
RewriteRule ^(.*)$ - [NC,L]Bypass flash / flex communication
RewriteCond %{REQUEST_URI} ^/(.(flashservices|flex2gateway|flex-remoting)).$
RewriteRule ^(.*)$ - [NC,L]Bypass images, css, javascript and docs, add your own extensions if needed.
RewriteCond %{REQUEST_URI} .(bmp|gif|jpe?g|png|css|js|txt|pdf|doc|xls|ico)$
RewriteRule ^(.*)$ - [NC,L]The ColdBox index.cfm/{path_info} rules.
RewriteRule ^$ index.cfm [QSA,NS]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.cfm/%{REQUEST_URI} [QSA,L,NS]
RewriteEngine on
Here are my routes: