Webmaster Tools

.htaccess Generator

Create Apache .htaccess files with redirects and security rules.

General Settings
WWW Preference
DirectoryIndex
Custom Redirects

No custom redirects yet. Click “Add Redirect” to create one.

.htaccess Output

How to use .htaccess Generator

1

Choose your options

Toggle HTTPS redirection, www preference, security headers, and default index files.

2

Add custom redirects

Create 301/302 redirect rules for specific paths without writing RewriteRule syntax manually.

3

Copy and deploy

Copy the generated .htaccess file and upload it to the root of your Apache website.

Frequently Asked Questions