User Tools

Site Tools


how_to_create_a_custom_route_url

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
how_to_create_a_custom_route_url [2016/04/17 00:42]
admin
how_to_create_a_custom_route_url [2016/04/17 00:43]
admin
Line 19: Line 19:
           'pattern' => '#^my-fantastic-url$#',  // This is the regex pattern so the platfrom knows how to resolve a rewritten url back to a document           'pattern' => '#^my-fantastic-url$#',  // This is the regex pattern so the platfrom knows how to resolve a rewritten url back to a document
           'page' => 'mypage',  // This is the target document meaning pages/mypage.inc.php           'page' => 'mypage',  // This is the target document meaning pages/mypage.inc.php
-          'params' => '', // Create URL query parameter from the result of the regex $1 $2 etc.+          'params' => '', // Create URL query parameters from the result of the regex $1 $2 etc.
           'redirect' => true, // If accessing a non rewritten url, let's do a 301 redirect           'redirect' => true, // If accessing a non rewritten url, let's do a 301 redirect
         ),         ),
how_to_create_a_custom_route_url.txt ยท Last modified: 2016/04/17 00:43 by admin