How to Make a Website
Guides
Guides for Beginners
Guides for Developers
Tools
Best Website Builders
Best Domain Registrars
Best Blogging Platforms
Best Logo Makers
Email Marketing Services
Browse all tools
Web Hosting
Best Web Hosting
Best Cheap Web Hosting
Best WordPress Hosting
GoDaddy Review
Bluehost Review
Hostgator Review
Hostinger Review
Dreamhost Review
All Comparisons & Reviews
Planning
Website Name Ideas
Website Colors
Website Layouts
Design Ideas
Website Costs
Read all articles
Contact Us
Free .htaccess Generator
Rewrite to www
Domain Name
Redirects example.com to www.example.com
301 Redirect File or Directory
Old File Path
New File Path
Old Directory Path
New Directory Path
Caching Javascript, CSS, and Images
File Extensions
Comma separated list. Omit leading "."
Cache Duration
Minutes
Hours
Days
Weeks
Months
Public
Private
Must Revalidate
Password protect file (requires .htpasswd file)
File Name
.htpasswd File Path
htpasswd Generator
Username
Password
Prevent Hotlinking
Referring URL
The domain that is hotlinking to you.
File Extension
Comma separated list. Omit leading "."
No hotlinking Image
Optional. What to show instead of the intended image.
Custom Error Pages (400, 404, 500, etc)
400 Error file path
Bad Request
401 Error file path
Auth Required
403 Error file path
Forbidden
404 Error file path
Not Found
500 Error file path
Internal server error
Block or Allow an IP
Block these IPs
Comma separated list
Allow these IPs
Comma separated list
Block bots
Enable
Change default directory page
Directory Page
Prevent viewing of .htaccess file
Enable
Prevent Directory Listing
Enable
Generate Code
.htaccess
.htpasswd