Without having a url rewriter such as ISAPI_Rewrite available, is it possible to achieve the following:
I would like a user to browse to http://www.jjj.com/directory
where /directory
does not actually exist. IIS transfers the user to not-found.cfm
.
At this point I can serve index.cfm
i.e. http://www.jjj.com/directory/index.cfm
.
The url will display just fine and the page loads even though the directory or index.cfm
doesn't exist. However I'd like to be able to not have index.cfm
in the url.
Ideal:
Page Request to
http://www.jjj.com/directory
IIS loads
not-found.cfm
as the default404
errorhandler.Not found strips the
CGI.query_string
and usescfswitches
to funnel the user to the appropriate controller function. May useonMissingTemplate
?The page request never changes in the URL and the page loads transparently the user with
200 OK
statusIf a user requests
http://www.jjj.com/directory/index.cfm
I would301
redirect tohttp://www.jjj.com/directory
Current:
Page Request to
http://www.jjj.com/directory
IIS loads
not-found.cfm
as default404
error handler.Not found strips the
CGI.query_string
and usescfswitches
to funnel the user to the appropriate controller function.The page request changes to
http://www.jjj.com/directory/index.cfm
with a200 OK
status