Dan's Tools htaccessredirect.net

.htaccess Generator

  • Development
    • HTML/JS/CSS Playground
    • Color Picker
    • CSS Fonts
    • Convert Files
    • .htaccess Generator
    • Javascript Error Logger
    • RegEx Testing
    • TimeStamp Converter
    • Website Speed Test
  • Encode/Decoders
    • Base64 Encode/Decode
    • Binary Converter
    • Online Diff Tool
    • HTML Entities Escape
    • MD5 Hash Generator
    • SHA-1 Hash Generator
    • URL Encode/Decode
  • Formatters
    • CSS Formatter
    • GO Formatter
    • HTML Formatter
    • Javascript Formatter
    • Javascript Obfuscate
    • JSON Formatter
    • JSON Editor
    • JSON Validator
    • Perl Formatter
    • PHP Formatter
    • Python Formatter
    • Ruby Formatter
    • SQL Formatter
    • XML Formatter
  • Images
    • Favicon.ico & App Icon Generator
    • Online Image Editor
    • CSS Sprite Generator
  • Internet
    • Unit Converter
    • Email Validator
    • Data Size Converter
    • Is It Up Or Down
    • Default Router Settings
    • What is my IP
  • Minifiers
    • CSS Minify
    • Javascript Minify
    • JSON Minify
  • SEO
    • Adblock Monitor & Notification
    • Keyword Tool
  1. Related:
  2. CSS Fonts
  3. Color Picker
  • Tweet Follow @danstools00  
  • All .htaccess Options
  • Rewrite to www
  • 301 Redirect File or Directory
  • Caching Javascript, CSS, and Images
  • Password protect file (requires .htpasswd file)
  • htpasswd generator
  • Prevent Hotlinking
  • Custom Error Pages (400, 404, 500, etc)
  • Block or Allow an IP
  • Block bots
  • Change default directory page
  • Prevent viewing of .htaccess file
  • Prevent Directory Listing

Rewrite to www More info about .htaccess Redirect to WWW

Domain Name
Redirects example.com to www.example.com

301 Redirect File or Directory More info about .htaccess 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
Public Private
Must Revalidate

Password protect file (requires .htpasswd file) More info about .htaccess and .htpasswd Protection

File Name
.htpasswd File Path

htpasswd Generator More info about .htpasswd File

Username
Password

Prevent Hotlinking More info about .htaccess Prevent Hotlink

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) More info about .htaccess Custom Error Page

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 More info about .htaccess Block and Allow IP

Block these IPs
Comma separated list
Allow these IPs
Comma separated list

Block bots More info about .htaccess Block Unwanted Bots by Useragent

Enable

Change default directory page More info about .htaccess Change Default Dir

Directory Page

Prevent viewing of .htaccess file More info about Block access to .htaccess

Enable

Prevent Directory Listing More info about .htaccess Block Directory Listing

Enable


© Dan's Tools | Contact | About | For more dev tools, check out danstools.com

Please Share!

Thank you for using my tool. If you could share this tool with your friends, that would be a huge help:
Tweet
submit to reddit


Or follow us to learn about our latest tools:
Follow @danstools00