{"ok":true,"result":{"slug":"htaccess-redirect-generator","name":"Htaccess Redirect Generator","summary":"Generate Apache .htaccess and Nginx redirect rules: single page, bulk list, domain move, force HTTPS, add or remove www, add or remove trailing slashes.","description":"Generate 301 and 302 redirects for .htaccess and Nginx: single pages, bulk lists, domain moves, HTTP to HTTPS, www and trailing slashes, safely escaped.","method":"POST","endpoint":"/api/v1/tools/htaccess-redirect-generator","plan":"free","mcpName":"htaccess_redirect_generator","input":{"type":"object","additionalProperties":false,"properties":{"mode":{"type":"string","description":"page: one old path to one new URL (from, to). bulk: many pairs (pairs). domain: move oldDomain to newDomain. https: force HTTPS (domain optional). www-add / www-remove: canonical host (domain). slash-add / slash-remove: trailing slashes.","default":"page","enum":["page","bulk","domain","https","www-add","www-remove","slash-add","slash-remove"],"maxLength":200000},"code":{"type":"integer","description":"HTTP status: 301 (permanent) or 302 (temporary).","default":301,"minimum":301,"maximum":302},"apacheStyle":{"type":"string","description":"Apache module for page and bulk modes: rewrite (mod_rewrite) or alias (mod_alias Redirect lines).","default":"rewrite","enum":["rewrite","alias"],"maxLength":200000},"from":{"type":"string","description":"page mode: the old path or URL, e.g. /old-page.html.","maxLength":2048},"to":{"type":"string","description":"page mode: the new path or absolute URL.","maxLength":2048},"pairs":{"type":"string","description":"bulk mode: one \"old new\" pair per line, separated by whitespace or a comma.","maxLength":100000},"oldDomain":{"type":"string","description":"domain mode: the old domain, e.g. old-site.com.","maxLength":253},"newDomain":{"type":"string","description":"domain mode: the new domain, e.g. new-site.com.","maxLength":253},"domain":{"type":"string","description":"https, www-add and www-remove modes: the site's domain, e.g. example.com.","maxLength":253},"https":{"type":"boolean","description":"Use https:// in redirect targets for domain and www modes.","default":true}}},"example":{"mode":"bulk","pairs":"/old-page.html /new-page\n/blog/2019/hello /blog/hello"},"randomOutput":false,"network":false,"docs":"https://pithlab.com/developers/tools/htaccess-redirect-generator","page":"https://pithlab.com/tools/htaccess-redirect-generator"}}