Copy link to clipboard
Copied
Hello,
I was wondering what was the best way / if there is a CF way to map... for example... http://www.mysite.com/home to map to the file http://www.mysite.com/folder_x/nice_file.cfm
Is this something that can be set in the application.cfc? or would other methods be easier / more frequently used?
Thanks!!
URL mappings are typically done at the web server, rather than at CF. By default, CF won't process the request for /home, as it's only looking for URLs that end in .cfm, .cfc, etc.
You could do this with mod_rewrite on Apache or ISAPI_Rewrite on some versions of IIS.
Dave Watts, CTO, Fig Leaf Software
Copy link to clipboard
Copied
URL mappings are typically done at the web server, rather than at CF. By default, CF won't process the request for /home, as it's only looking for URLs that end in .cfm, .cfc, etc.
You could do this with mod_rewrite on Apache or ISAPI_Rewrite on some versions of IIS.
Dave Watts, CTO, Fig Leaf Software
Copy link to clipboard
Copied
That is what I suspected. Thank you for your thoughts