htaccess tester

To help developers build tools around the htaccess tester, we decided to introduce a small API.
We support JSON as input and output format.

POST https://htaccess.madewithlove.be/api


Request:

{
    "url": "http://example.com/test",
    "htaccess": "RewriteRule !/redirected /redirected [R]"
}

Response:

{
  "output_url": "http://example.com/redirected",
  "lines": [
    {
      "value": "RewriteRule !/redirected /redirected [R]",
      "isValid": true,
      "wasReached": true,
      "isMet": true,
      "message": "The new url is http://example.com/redirected\nTest are stopped, a redirect will be made with status code 302"
    }
  ]
}