Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Virtual Mapping?

Guest
Nov 24, 2011 Nov 24, 2011

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

479
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Nov 24, 2011 Nov 24, 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

Translate
Community Expert ,
Nov 24, 2011 Nov 24, 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
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Nov 24, 2011 Nov 24, 2011
LATEST

That is what I suspected. Thank you for your thoughts

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources