Control Panel Login Forgot Password

Serving Your Internet Presence

Aosoft Website Hosting  
 

Technical Support

Toll: 888.289.1124
Intl:01.941.894.6426
Submit Support Request

Support Tools

 

What is .htaccess?

Definition gathered from Wikipedia, the free encyclopedia

.htaccess (Hypertext Access) is the default name of Apache's directory-level configuration file. It provides the ability to customize configuration directives defined in the main configuration file. The configuration directives need to be in .htaccess context and the user needs appropriate permissions.

Allowing Directory Browsing:
There may be times when you want or need to allow visitors to browse a directory. For example, you may need to allow access to files in a directory for downloading purposes on a server that is configured to not allow directory browsing.

Many servers are configured so that visitors cannot browse directories. In that case visitors will not see the contents of the directory but will instead get an error message.

You can override the servers settings and allow directory browsing wint an .htaccess file. First, create a text file titled .htacces on your computer (note: include the '.' at the beginning of the file name). In it put this line:

Options +Indexes

Save this file and FTP it to the directory that you want to allow browsing in.

Redirecting Pages
At some point, it may be necessary to redirect requests for one page to another. Perhaps you have changed the page name or removed it all together. You will still want your website visitors to be able to find your information.

To do this, put the following code in your .htaccess file. Replace "old-page.html" with the page you have removed, "new-page" with the page you are redirecting to, and "domain.com" with your domain name.

Redirect 301 ⁄old-page.html http:⁄⁄www.domain.com⁄new-page.html