Is it possible to clear URLs in a clean ColdFusion solution?

We need to evaluate the portal based on ColdFusion technology. We do not have information about the hosting environment (maybe Windows or Linux).

One of the requested features is clean URLs. Does anyone know if this can be achieved with a clean ColdFusion solution or is it always connected to a web server? I know that for IIS7 there are clear extensions for including pure URLs, but I am afraid that we cannot depend on them.

+3
source share
2 answers

You can use the ColdFusion method Application.cfc onMissingTemplate()to achieve this effect. If you want to have extensions other than .cfm, you will need to do some web server configuration to force ColdFusion to serve other extensions and directory paths (for example /path/to/something/), you need to set up a standard default document (for example, index.cfm). Ben Nadel has a blog post that covers this idea widely - be sure to check the comments.

, IIS 7 Apache URL ( , - Windows Linux ). , , , URL, . , , ColdFusion , , -, .

+6

.

"blogCFC" Ray Camden (www.coldfusionjedi.com)... CF URL- SES .

URL- /blabh.com/index.cfm/something/somethingelse

.cfm - , . .

- 404 -. , , , mod_rewrite... , , , -. .

http://www.coldfusionmuse.com/index.cfm?mode=entry&entry=8F4658E4-0763-5FB7-67D23B839AB74005

-

+1

Source: https://habr.com/ru/post/1787693/


All Articles