Hello All,
Im trying to implement the SES URL mechanism, and I must not be
getting something correct. All Im trying to do is implement it on the
default handler/method that comes right out of the box
(event=general.dspHome). Ive got setUniqueURLs set to true Ive got
setBaseURL set to http://localhost/testColdboxApp and just the default
courses set, and everytime I request "http://localhost/
testColdboxApp/" it redirects to "http://localhost/testColdboxApp/
general" then gives me a 404 Not Found...
So I guess my questions would be, do I need to setup in my routes
config a course for every event I'm creating?? What am I missing here?
I'm not sure if Apache's DirectoryIndex module has anything to do with
it, but I've tried with and without...
- Are you using mod_rewrite ? or Are you relying on the /index.cfm/
handler/action approach?
I would suggest turning unique url's off for now, so you can test.
Also, for the base URL, if you are not using a mod rewrite or isapi
rewrite, you should include the index.cfm.
Example:
Try that and let me know. If you use mod_rewrite, you need to allow
for directory overrides and .htaccess, that's more of a mod_rewrite
thing than a coldbox thing.
Yes I am using mod-rewrite via .htaccess, although all I did was copy
and paste the following into my .htaccess file that is located at the
root of my application (not web root).
Is there anything else I would need to add to my .htaccess file for
this...? Also another "if-y" thing I did was I just straight
downloaded the routes config file as well as the system folder via svn
I did not download anything else (related to the framework). Would
this cause problems? So essentially I just added the routes to the
config directory and replaced the whole system directory...
What do you mean by "allow for directory overrides"? Is this something
in my .htaccess file, or in my httpd.conf file?
What do you mean by “allow for directory overrides”? Is this something
in my .htaccess file, or in my httpd.conf file?
Yes, the httpd.conf file. Here is mine:
<Directory “C:\Inetpub\wwwroot”>
Options Indexes FollowSymLinks
Order allow,deny AllowOverride All
Allow from all
Then I use the .htaccess file provided, with the baseUrl to like: http://localhost/testApp
Then it should work