Created
December 25, 2013 14:46
-
-
Save Molnfront/8123834 to your computer and use it in GitHub Desktop.
URL rewrite rules for framework one and Xindi. Works with Railo 4.1.2 and Tomcat 6. Remark the redirect/location first in admin/Application.cfc.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<!DOCTYPE urlrewrite PUBLIC "-//tuckey.org//DTD UrlRewrite 4.0//EN" | |
"http://www.tuckey.org/res/dtds/urlrewrite4.0.dtd"> | |
<urlrewrite> | |
<rule enabled="true" match-type="regex"> | |
<name>Admin URLs Pass-through</name> | |
<condition type="request-uri" operator="equal">^/(index.cfm/|admin/main|admin/security)</condition> | |
<from>^/index.cfm/admin/</from> | |
<to type="passthrough">/index.cfm/admin:main</to> | |
</rule> | |
<rule enabled="true"> | |
<name>Generic Pretty URLs Pass-through</name> | |
<condition type="request-uri" operator="notequal">^/(index.cfm|robots.txt|osd.xml|flex2gateway|cfide|cfformgateway|railo-context|admin-context|files|images|jrunscripts|javascripts|miscellaneous|stylesheets|css|js|default|tasks|public|admin/assets/css|admin/assets/img|admin/assets/js|admin/assets/bootstrap|admin/assets/ckeditor|clientfiles|_clientfiles)</condition> | |
<from>^/(.*)$</from> | |
<to type="passthrough">/index.cfm/$1</to> | |
</rule> | |
</urlrewrite> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment