Like our tool?
Say thanks with a Tweet
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
{
"url": "http://example.com/test",
"htaccess": "RewriteRule !/redirected /redirected [R]"
}
{
"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 Test are stopped, a redirect will be made with status code 302"
}
]
}