Skip to content

Commit

Permalink
remove dtd (all seem broken), use 6 character hashcode
Browse files Browse the repository at this point in the history
  • Loading branch information
pmuir committed Jun 16, 2010
1 parent d14d40e commit 15d21b8
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions jsf/pastecode/src/main/webapp/WEB-INF/urlrewrite.xml
@@ -1,6 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE urlrewrite PUBLIC "-//tuckey.org//DTD UrlRewrite 3.0//EN"
"http://tuckey.org/res/dtds/urlrewrite3.0.dtd">

<!--
Expand All @@ -13,7 +11,7 @@

<!-- first construct nice address (ending with number, e.g. /0532106545) and show it in URL field-->
<rule>
<from>^/(\w{40})\.jsf$</from>
<from>^/(\w{6})\.jsf$</from>
<to type="redirect" last="true">/weld-pastecode/$1</to>
</rule>

Expand All @@ -24,7 +22,7 @@

<!-- then forward to appropriate page without changing displayed URL -->
<rule>
<from>^/(\w{40})$</from>
<from>^/(\w{6})$</from>
<to type="forward" last="true">display.jsf?id=$1</to>
</rule>

Expand Down

0 comments on commit 15d21b8

Please sign in to comment.