WebshoppeSolutions
.htaccess File Generator
Southeast Texas Web Development - Beaumont, Texas - 409-678-1190  
Search WebshoppeSolutions for advice, tutorials, and website design assistance from other sources across the internet.
 
 
 
Your .htaccess file can help to keep your domain more secure, keep out unwanted traffic, and allow you to set up login rules for selected directories.

You may use the form below to create your own fairly extensive .htaccess file automatically. Simply read and select or write which commands or options you would want your.htaccess file to contain. When you are finished, simply click on the Create .Htaccess File button and you will be presented with your .htaccess file text. Copy and paste the generated text into your .htaccess file located in your domain root.
     Main Menu
Contact & Feedback Forms
Menus & Website Navigation
New Websites & Rebuilds
Website Promotions
Multimedia Websites
     Technology Solutions
Search Technologies
WebshoppeSolutions Weblog
     Webmaster Tools
.htaccess Generator
Robot txt Generator
Password Encryption
Meta Tag Generator
RGB Color Charts
Domain Name Whois
     Free Downloads
Free Software & Shareware
Free Search Engine Scripts
Free Website Templates
WebshoppeSolutions - .htaccess File Generator
Default Page

What page to load if the user doesn't specify any (usually index.html or index.php)
Can specify multiple in a list (ie index.php index.html index.htm default.htm)

Options
CGI

Execution of CGI scripts using mod_cgi is permitted.

File Extensions
SSI

Server-side includes provided by mod_include are permitted.

Symbolic Links

The server will follow symbolic links in this directory.

The server will only follow symbolic links for which the target file or directory is owned by the same user id as the link.

Index

If a URL which maps to a directory is requested, and there is no DirectoryIndex (e.g., index.html) in that directory, then mod_autoindex will return a formatted listing of the directory.

MultiViews

Content negotiated "MultiViews" are allowed using mod_negotiation.

SSL

Force HTTP requests to redirect HTTPS

Authentication










Additional Mime Types

File extension to mime type mappings are in this format
mime/type ext
for example
text/html html
application/x-gzip gz

Protect System Files

File Cache Control

How often will the client/proxy refresh the file

Expire all clients/proxies at the same time

ModRewrite
Protect Media Files

Check the referrer domain for images, music, and sound files

Block E-mail Harvesters

Deny access to e-mail harvesting programs.

Time-Dependant Page




Serve pages depending on time of day

Virtual DNS to Folder

Rewrite Virtual Subdomains to subfolders. Ie: rewrite www.foo.domain.com to www.domain.com/subdomains/foo. Useful for virtual user domains.

Redirect Failing URLs To Other Webserver

When a URL is invalid, or would produce an error, redirect to a secondary server.

Rewrite Condition
Rewrite Page Page requested in the URL
Browser Dependant Page Page to use for Netscape
Page to use for IE
Page to use for text mode
Page to use for other browsers
Country Specific Page

Requires the mod_geoip is setup and configured on your server. Thought the software is free, the datafiles are a commercial product. Allows you to redirect users to specific pages depending on their country of origin.

US = United States GB = United Kingdom CA = Canada MX = Mexico FR = France NL = Netherlands A1 = Anonymous

page to redirect visitors from the country (index.us.html or index.fr.html)

Map Folder To Script

This trick will make it possible to run a script that has parameters in the URL. You can make a custom home page script for your users that they can access like /login/home.html or /login/preferences.html and have them both go to login.php.

Folder you will reference in your href and urls (ie login)

Script that will be ran (ie login.php, login.cgi, or login.pl) If you would like the rest of the path as a POST variable, do something like "login.php?page="

Custom Error Documents

Allows you to specify custom documents to serve on error conditions

Bad Request
Authentication Required
Forbidden
Not Found
Server Error
Redirection

Use this option if a document has been moved to a new url. It will take care of automatic redirection for the user.





 
 
About Us   Contact Us   Privacy   Accepable Use Policy   Legal     © Copyright 2010 - WebshoppeSolutions.com - all rights reserved