trouble to access to database after rewriting url with cfwheels
I'm looking for advices about the rewriting URLs fonction of cfWheels. I'm running an app on Adobe ColdFusion 2025, cfWheels 2.5.1 and CommandBox
I'm looking for rewriting URLs of the website (suppress the"/index.cfm/" prefix) and it works! great! BUT I don't have access to my CFIDE Admin Page, my Database and the cfWheels Routes Page.
I have to share with you my .htaccess code:
Options +FollowSymLinks
RewriteEngine On RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L] RewriteCond %{REQUEST_URI} ^/(CFIDE|cfide|CF_scripts|cf_scripts|wheels/routes) [NC]
RewriteRule ^ - [L] RewriteCond %{REQUEST_URI} ^/index.cfm/(.*)$ [NC]
RewriteRule ^index.cfm/(.*)$ /$1 [R=301,L]
RewriteRule ^(.*)$ /index.cfm/$1 [QSA,L]
There is my settings.cfm:
<cfscript>
set(coreTestDataSourceName="manytomany");
set(dataSourceName="manytomany");
set(URLRewriting="On");
</cfscript>
There is my server.json:
{
"app":{"cfengine":"adobe@2025" },
"name":"cf2025_project",
"web":{ "rewrites":{ "config":".htaccess", "enable":true },
"servletPassPredicate":"true" }
}
If someone have a idea of what's wrong with that? Thanks for your help!
