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

Make folder open page.

Explorer ,
Jun 05, 2006 Jun 05, 2006

Copy link to clipboard

Copied

I have seen this before but not sure how to do it.
I want to open pages without having the .CFM show. So if i go to:

http://www.mysite.com/searchpage it would load "Searchpage.cfm"

how can I do this?
Thanks
TOPICS
Advanced techniques

Views

266

Translate

Translate

Report

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
New Here ,
Jun 06, 2006 Jun 06, 2006

Copy link to clipboard

Copied

You can't do that directly. You can set your web server to return a default page in a folder if no page is specified. This page is generally index.cfm. So your search page would get that name, and you would have the effect you want.

But you need to make the change in default page at the web server level; there is nothing you can do at the ColdFusion level.

Votes

Translate

Translate

Report

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
Explorer ,
Jun 06, 2006 Jun 06, 2006

Copy link to clipboard

Copied

LATEST
After setting a default page in IIS or whatever server you use, you can pull out the cgi variable from the url. for example www.mysite.com/searchpage. Then it redirects to the default page - on the default page, you need to pull out the CGI variable, such as cgi.path_info, and then do a cf include template = "#your variable#".

that should get you the effect you need... just search a little on cgi variables and write your default page.

Votes

Translate

Translate

Report

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
Documentation