Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jetty-users] URL Rewriting

Hello,

 

Does Jetty 9 have anyway to only rewrite a URL if a certain file exists? I have a setup similar to this that I’d like to replicate in Jetty:

 

If a file named “/modules/(rest of URL after domain)/ui.cfc”exists:

 

http://.../admin/dashboard --> /index.cfm?p=admin/dashboard

http://.../user/profile --> /index.cfm?p=user/profile

 

Otherwise just treat it as a regular URL to avoid breaking links to JS, CSS, images etc.


Back to the top