Copy link to clipboard
Copied
I’ve been pulling my hair out for two days now trying to remove file extensions from my files. For example:
mydomain/about.cfm > mydomain/about/
I’ve got this in my .htaccess file:
RewriteEngine on
RewriteBase /
RewriteRule ^([A-Za-z0-9-]+)/?$ $1.cfm
Shouldn’t that work? I get nothing but 500 errors, and the error log only says:
”JRun will not accept request. Check JRun web server configuration and JRun mappings on JRun server.”
Can anyone please help? Thanks in advance.
Copy link to clipboard
Copied
Well, the regexp seems ok.
Have you debugged this, using hardcoded examples, such as
RewriteEngine On
RewriteRule ^about/? about.cfm
to begin with?
Have you tried adding
Options FollowSymLinks
as the first line?
--
- Fernis - fernis.net - ColdFusion Developer For Hire