htaccess generator
htaccess_generatorGenerate Apache .htaccess rules: force HTTPS, www redirect, caching, gzip, hotlink protection and more. Runs on smart-tools.xyz.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "htaccess_generator"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| www | No | www redirect: none / add / remove (default none) | |
| gzip | No | Compress text responses with mod_deflate (default false) | |
| cache | No | Add browser caching headers (default false) | |
| locale | No | Language for the source_url link (default en) | |
| error_404 | No | Custom 404 page path, e.g. /404.html | |
| force_https | No | Redirect all HTTP to HTTPS (default false) | |
| block_hotlink | No | Block image hotlinking (default false) | |
| hotlink_domain | No | Your domain for hotlink protection, e.g. example.com | |
| disable_listing | No | Disable directory listing (Options -Indexes) (default false) |