Skip to main content
November 24, 2011
Answered

Virtual Mapping?

  • November 24, 2011
  • 2 replies
  • 543 views

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!!

    This topic has been closed for replies.
    Correct answer Dave Watts

    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

    2 replies

    November 25, 2011

    That is what I suspected. Thank you for your thoughts

    Dave WattsCommunity ExpertCorrect answer
    Community Expert
    November 25, 2011

    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

    Dave Watts, Eidolon LLC