`routes.php` config example I want to move some permanent routes from the admin to my routes config file so that they can be version controlled.

in the admin...
news-sort/month/&lt;year&gt;/&lt;month&gt; ....
news-sort/tag/&lt;tag&gt; ....
news-sort/author/&lt;*&gt;


Do these look ok, not 100% sure on the variable and regex etc.

'news-sort/month/(?P&lt;year&gt;\d{4})/(?P&lt;month&gt;\d{2})' =&gt; 'news-sort/index',
'news-sort/tag/(?P&lt;tag&gt;[a-zA-Z0-9._%-]+)' =&gt; 'news-sort/index',
'news-sort/author/(?P&lt;author&gt;[a-zA-Z0-9._%-]+)' =&gt; 'news-sort/index'
The simplest way to transform dynamic routes into advanced routes, is to go to your craft_routes table and copy it out of urlPattern:

Example:

If you have set this in your backend:
news-sort/month/&lt;year&gt;/&lt;month&gt;

You'll find this in urlPattern:
news\-sort\/month\/(?P&lt;year&gt;\d{4})\/(?P&lt;month&gt;(?:0?[1-9]|1[012]))

Just remove the escaping \, and you've got your regex:
news-sort/month/(?P&lt;year&gt;\d{4})/(?P&lt;month&gt;(?:0?[1-9]|1[012]))