title: Replace "dir/23-example-example/" to "dir/index.php?id=23"
body: <p>How to do this?</p>
  
  <p>"example.com/dir/dir/1-sample-text" - "example.com/dir/dir/index.php?id=1"</p>
  
  <p>"example.com/dir/dir/1-other-sample-text" - "example.com/dir/dir/index.php?id=1"</p>
  
  <p>"example.com/dir/dir/2-sample-text" - "example.com/dir/dir/index.php?id=2"</p>
  
  <p>"example.com/dir/dir/1-sample-text/?page=2" - "example.com/dir/dir/index.php?id=1&amp;page=2"</p>