Welcome to .htaccess Tools

One this site you will find various generators to create .htaccess files for ie hotlink protection, password protection, or blocking of hitbots.

iPhone detection and redirection

I have written an article on how to use htaccess to detect and redirect iPhone users, by examining the User-Agent header iPhone sends.

Htaccess redirection

Htaccess can be used to create various forms of redirection. Read the htaccess redirection article and learn how to redirect from old domain to new domain, or redirect to www.

Htpasswd Generator - Create a htpasswd password

Use the htpasswd generator to create passwords for htpasswd files. Just enter username and password and an entry for a htpasswd file is generated.

How to create a password for a .htpasswd file using PHP

A user emailed me and asked how to create a password for a .htpasswd file using PHP. Take a look at the article.

.htaccess FAQ

I have made a htaccess FAQ with answers to the most frequently asked questions about .htaccess and mod_rewrite. I will continuously update the FAQ with more questions and answers. If you have a question not listed in the FAQ, please don’t hesitate to create a thread in the htaccess forum.