EyeCreate Net Solutions :: Getting You Global :: Web Development Experts
htaccess Wizard

Welcome to EyeCreate's .htaccess Javascript Wizard

This wizard has been serving the Internet community for nearly 10 years and is the original script. We intend on maintaining it for as long as folks visit here.

The .htaccess file is an ASCII text document that can be placed in any directory on your site. It can be used to customize Apache server operations in your site. Ask your System Administrator if your server is running Apache prior to using this tool. You must use FTP software in ASCII mode to upload your .htaccess file.

When you have finished creating your .htaccess code, click on the "Select All" button and copy (ctrl + c) and paste (ctrl + v) the code into a text editor and save the file as .htaccess.

Custom Error Documents

You have been to those websites that have a custom error message webpages that lets vistors know that the server is experiencing some sort of issue. You can now do this yourself by creating a custom error pages. Choose the error that you want to provide a custom error page for and type the filename of the error page.

  

Different Default Home Page

While many web server's default filename is set to "index.html" some programmers and programs use a different default filename ie: default.htm, index.htm or Main.html... This can be a problem for some large sites that would require renaming all the links to a different default filename. To make your life easier, you can change the default filename by typing it in the box below and clicking on the "Add it" button. When this file is uploaded to the server, all the subdirectories will have the default filename changed.

  

301 Redirect

The perfect utility for retaining your traffic when a site has been redesigned. Rather than keeping those old files on the server with some kind of redirect code in them, use .htaccess to redirect the traffic to the new address and delete the old files.
ie:Redirect PERMANENT /aboutus.html http://www.xyz.com/aboutus.php

From: To:   

Allow and Deny

This is a great feature to prevent comment spammers from accessing your blog or allowing only certain addresses from accessing your directory.

    

Cache Control

This is a very handy feature of the Apache server that allows you to specify the amount of time that a proxy server will store your website.
  • If access is used, the date of expiration is different for each client; this can be good for image files that don't change very often, particularly for a set of related documents that all refer to the same images
  • If modification is selected, all current copies of the document in all caches will expire at the same time, which can be good for something like a weekly notice that's always found at the same URL.
  

Password Protection

For those who wish to password protect a directory on their site, this utility will make the job a lot easier.

Server path to the password file:
Text you would like for the dialog box:
Filename of failed authorization page:
 

.htaccess file contents



  

Encrypted Password Generator

This hand little utility will create the entries for the password file that you use to password protect a directory and all the subdirectories under it. Once you have all the entries for your password file, name the file .htpasswd and upload it to the directory of your choice in ASCII mode. For enhanced security, don't upload the file to the same directory as the .htaccess file that will be calling for the password entries.
Username:
Password:
Re-Type Password:

.htpasswd file contents

Your feedback is valuable to us. Tell us what other Apache directives you would like to see this script do for you.
First Name:
Last Name:
Email Address:
captcha
Please enter the above code here:
   
Page copy protected against web site content infringement by Copyscape
$3.95 Web Hosting