mirror of
https://github.com/dannyvankooten/AltoRouter.git
synced 2025-08-10 02:17:13 +02:00
fix internal links
This commit is contained in:
@@ -3,11 +3,11 @@ title: "Mapping routes using AltoRouter"
|
||||
layout: default
|
||||
---
|
||||
<h1>
|
||||
<small>Using AltoRouter</small>
|
||||
<small>Using AltoRouter</small>
|
||||
Mapping Routes
|
||||
</h1>
|
||||
|
||||
<p>By now, you should have <a href="/usage/rewrite-requests.html">rewritten al requests to be handled by a single file in which you created an AltoRouter instance.</a></p>
|
||||
<p>By now, you should have <a href="{{ '/usage/rewrite-requests.html' | relative_url }}">rewritten al requests to be handled by a single file in which you created an AltoRouter instance.</a></p>
|
||||
<p>To map your routes, use the <code>map()</code> method. The following example maps all <code>GET /</code> requests.</p>
|
||||
|
||||
{% highlight php startinline %}
|
||||
@@ -129,7 +129,7 @@ $router->addMatchTypes(array('cId' => '[a-zA-Z]{2}[0-9](?:_[0-9]++)?'));
|
||||
<p>Once your routes are all mapped you can start matching requests and continue processing the request.</p>
|
||||
|
||||
<p>
|
||||
<a style="float:left;" href="/usage/rewrite-requests.html">« Rewriting requests</a>
|
||||
<a style="float:right;" href="/usage/matching-requests.html">Matching requests »</a>
|
||||
<a style="float:left;" href="{{ '/usage/rewrite-requests.html' | relative_url }}">« Rewriting requests</a>
|
||||
<a style="float:right;" href="{{ '/usage/matching-requests.html' | relative_url }}">Matching requests »</a>
|
||||
<br style="clear:both;">
|
||||
</p>
|
||||
|
Reference in New Issue
Block a user