Skip to content

Commit

Permalink
some redirect modifications
Browse files Browse the repository at this point in the history
  • Loading branch information
peterstadler committed Jul 3, 2013
1 parent d3dc3bb commit b86ecd5
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions webapp/controller.xql
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,21 @@ else if(matches($exist:path, 'css|jscript|pix|fonts')) then
<ignore/>
</dispatch>

(: Startseiten-Weiterleitung :)
else if (matches($exist:path, '^/([Ii]ndex/?)?$')) then
(:
: Startseiten-Weiterleitung 1
: Nackte Server-URL (evtl. mit Angabe der Sprache)
:)
else if (matches($exist:path, '^/?(en/?|de/?)?$')) then
<dispatch xmlns="http://exist.sourceforge.net/NS/exist">
<redirect url="{concat('/', $lang, '/Index')}"/>
</dispatch>

(:
: Startseiten-Weiterleitung 2
: Diverse Index Variationen
: Achtung: .php hier nicht aufnehmen, dies wird mit den typo3ContentMappings abgefragt
:)
else if (matches($exist:path, '^/[Ii]ndex(\.(htm|html|xml)|/)?$')) then
<dispatch xmlns="http://exist.sourceforge.net/NS/exist">
<redirect url="{concat('/', $lang, '/Index')}"/>
</dispatch>
Expand Down

0 comments on commit b86ecd5

Please sign in to comment.