Main Menu
Sub Menu
- Article Ref
- 4912-SKXN-6319
- Date Created
- Fri, 7th May 2010
- Date Modified
- Wed, 4th Jun 2014
Creating an .htaccess file
Question
What is an .htaccess file and how do I create one?
Answer
.htaccess files are text files that contain instructions for the server. Some typical uses of .htaccess files include rewriting URLs for search engine optimization, and preventing certain users from accessing your website. More information about .htaccess files can be found here. This is a link to the actual .htaccess site.
1. Open a text editor of your choice. (Microsoft Word cannot be used, the most common substitutes are Textedit for MacOS, or vi or vim on Linux. If you are a windows based user you will want to create the file using the file creator on your QWK.net control panel, Instructions can be found here.)
2. Create a file named htaccess.txt.
- The reason we do not name it .htaccess right away is that many operating systems will automatically hide .htaccess files.
3. Now that you have the file itself created you can add directives or simply upload it to your FTP account for later use.
- Uploading the file may be done using any FTP application or even using the built in FTP client in your QWK.net Shared Hosting account
4. Once your htaccess.txt file is uploaded to the server you will need to rename it to .htaccess, from here it should begin working immediately.
Article Comments
There are currently no comments.