I had this working on the coldfusion server with nginx, so I know it can work. But now I'm using apache on a server that is shared with other applications.
In config/settings I have
<cfset set(URLRewriting="On")>
From
what I've read I shouldn't really need that last line. Taking it out
gives me auto-generated urls like
http://server/myapp/index.cfm?controller=approvals.
But leaving it in gives me
https://server/myapp/index.cfm/approvals. And I get a Tomcat 404 with that
index.cfm thrown in there. It also throws a 404 if you manually enter
https://server/myapp/approvals.
Here's the rest of my rewriting setup:
In my application's root folder (not the wwwroot) I have the .htaccess with appropriately uncommented lines, but modified to act on my app's subfolder.
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{REQUEST_URI} !^/myapp/(flex2gateway|jrunscripts|cfide|cfformgateway|railo-context|files|images|javascripts|miscellaneous|stylesheets|robots.txt|sitemap.xml|rewrite.cfm)($|/.*$) [NC]
RewriteRule ^/myapp/(.*)$ ./rewrite.cfm/$1 [L]
In my httpd.conf file I have the directory for the application specified to allow overrides:
<Directory "/myapp">
AllowOverride All
</Directory>
Has anyone else had this problem? The most immediate problems are that (a) links aren't being generated properly, and (b) friendly urls aren't being redirected to rewrite.cfm.