Answers.Body: <p>Ok, this works, the backslash behind "...language>" was wrong:</p>
  
  <pre><code>'(?P&lt;title&gt;[-\w\d]+)\.(?P&lt;papayaId&gt;\d+)\.(?P&lt;language&gt;[\w]{2})\.html' =&gt; array('action' =&gt; 'jpk/rerouteOldPages'),
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-10-06T10:31:59.963Z
Answers.LastActivityDate: 2017-10-06T10:31:59.963Z
Answers.UserDisplayName: phaetons
Body: <p>I want to reroute old html pages.
  The format is:  /title-35-of-page.863.en.html
  I want to route every adresse with .html at the end also get the lang and id part of the address for further handling, but have problems with the dots.
  This are some versions that i tried, but none of them worked.</p>
  
  <pre><code>'(?P&lt;title&gt;[-\w\d]+).html' =&gt; array('action' =&gt; 'jpk/rerouteOldPages')
  '(?P&lt;title&gt;[-\w\d]+)html' =&gt; array('action' =&gt; 'jpk/rerouteOldPages')
  '(?P&lt;title&gt;[-\w\d]+)\.(?P&lt;papayaId&gt;\d+)\.(?P&lt;language&gt;\[a-z]{2})\.html' =&gt; array('action' =&gt; 'jpk/rerouteOldPages')
  </code></pre>
  
Tags: <plugin-development><routes>
Title: how to reroute old html pages?
ThreadText: # how to reroute old html pages?
  
  (Asked by: username_0 on 2017-10-06)
  
  I want to reroute old html pages.
  The format is: /title-35-of-page.863.en.html
  I want to route every adresse with .html at the end also get the lang and id part of the address for further handling, but have problems with the dots.
  This are some versions that i tried, but none of them worked.
  
  ```
  '(?P<title>[-\w\d]+).html' => array('action' => 'jpk/rerouteOldPages')
  '(?P<title>[-\w\d]+)html' => array('action' => 'jpk/rerouteOldPages')
  '(?P<title>[-\w\d]+)\.(?P<papayaId>\d+)\.(?P<language>\[a-z]{2})\.html' => array('action' => 'jpk/rerouteOldPages')
  
  ```
  
  **Tags:** plugin-development, routes
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2017-10-06. Score: 1 | Accepted answer
  
  Ok, this works, the backslash behind "...language>" was wrong:
  
  ```
  '(?P<title>[-\w\d]+)\.(?P<papayaId>\d+)\.(?P<language>[\w]{2})\.html' => array('action' => 'jpk/rerouteOldPages'),
  
  ```
  
  
  ---
  
  