Highlighted

How do I tell default page vs page

Advocate ,
Jun 16, 2015

Copy link to clipboard

Copied

I'm trying to create a check to distinguish between someone requesting the default page vs. explicitly requesting the default page. I'm running CF11 under IIS. My site has a default document of index.cfm. I need to determine if the user requested http://my.domain.com/ vs. http://my.domain.com/index.cfm

I cannot find any difference in the CGI scope between the two calls and I've also looked at the contents of getHttpRequestData() to no avail.

Views

174

Likes

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

How do I tell default page vs page

Advocate ,
Jun 16, 2015

Copy link to clipboard

Copied

I'm trying to create a check to distinguish between someone requesting the default page vs. explicitly requesting the default page. I'm running CF11 under IIS. My site has a default document of index.cfm. I need to determine if the user requested http://my.domain.com/ vs. http://my.domain.com/index.cfm

I cannot find any difference in the CGI scope between the two calls and I've also looked at the contents of getHttpRequestData() to no avail.

Views

175

Likes

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
Jun 16, 2015 0
haxtbh LATEST
Advocate ,
Jun 17, 2015

Copy link to clipboard

Copied

I think as far as CF will be concerned it will always be index.cfm. When you hit IIS it checks the default document, then calls index.cfm which CF processes. Which ever url is used, index.cfm is always called.

Likes

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
Reply
Loading...
Jun 17, 2015 0