Actually that post is not entirely correct, the file to check is
"/modules/(first part of URL after domain e.g admin, user)/ui.cfc".

 

Alternatively it should just rewrite only if no actual file exists at the
specified URL.

 

From: [email protected]
[mailto:[email protected]] On Behalf Of Shane Curless
Sent: June-18-13 2:35 PM
To: [email protected]
Subject: [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.

_______________________________________________
jetty-users mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/jetty-users

Reply via email to