Skip to main content

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

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: jetty-users-bounces@xxxxxxxxxxx [mailto:jetty-users-bounces@xxxxxxxxxxx] On Behalf Of Shane Curless
Sent: June-18-13 2:35 PM
To: jetty-users@xxxxxxxxxxx
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.


Back to the top