.htaccess Generator
Network & Ops ยท Free Online Tool
Generate redirect/cache/auth .htaccess rules.
Common Options
Rules
# .htaccess
# Generated by codernewbie.com
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
# Redirects & Rewrites
RewriteEngine On
Redirect 301 /old-page.html /new-page.html
# Block access to dotfiles
<FilesMatch "^\.">
Require all denied
</FilesMatch>
# Custom error pages
ErrorDocument 404 /404.html
ErrorDocument 403 /403.html
ErrorDocument 500 /500.html
Apache mod_rewrite
Generates RewriteRule and Redirect directives for Apache HTTP Server.
Multiple Redirect Codes
Supports 301, 302, 307, and 308 status codes per rule.
Ready to Upload
Download the file as .htaccess and upload to your site root.
How to Use .htaccess Generator
- 1Enter the URL, IP address, or network parameter to look up.
- 2Click the lookup or test button.
- 3Review the detailed results in the output panel.
- 4Use the information for your network operations.
Features
- โ100% free โ no signup, no subscription, no ads
- โRuns entirely in your browser โ data never leaves your device
- โFast and lightweight โ instant results
- โCross-platform โ works on desktop, tablet, and mobile
Frequently Asked Questions
Are network lookups real-time?
Yes, IP lookups, DNS queries, and HTTP tests perform live network requests to provide current data.
Is my IP address logged?
The IP Lookup tool queries public geolocation APIs. We do not store your IP address or lookup history.
Related Tools
IP Lookup
Query IP address geolocation and ISP info.
Subnet Calculator
Calculate IPv4 subnet details from CIDR.
DNS Lookup
Query DNS records via Google DNS over HTTPS.
User-Agent Parser
Parse browser, OS, and device from UA string.
HTTP Status Codes
Reference for all HTTP status codes.
HTTP Request Tester
Send GET/POST/PUT/DELETE requests and inspect responses.
Learn the concept
Learn the concept
Understand the programming ideas behind this tool.