You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
562 B
22 lines
562 B
<head>
|
|
<link rel="stylesheet" href="css/style.css">
|
|
</head>
|
|
<h1>Rewriting paths</h1>
|
|
|
|
<h2>Config</h2>
|
|
<pre><code>
|
|
{
|
|
"rewrite": [
|
|
{ "from": "/css/*", "to": "/styles/$1" },
|
|
{ "from": "/npm/*", "to": "http://registry.npmjs.org/$1" },
|
|
{ "from": "/gh/:user/repo/:name", "to": "https://api.github.com/repos/:user/:name" }
|
|
]
|
|
}
|
|
</code></pre>
|
|
|
|
<h2>Links</h2>
|
|
<ul>
|
|
<li><a href="/css/style.css">/css/style.css</li>
|
|
<li><a href="/npm/local-web-server">/npm/local-web-server</a></li>
|
|
<li><a href="/gh/75lb/repo/work">/gh/75lb/repo/work</a></li>
|
|
</ul>
|