post your comment   print   send to a friend
Rate:  54% | Views: 4445
Question categories:  Unix Plans

How do I create an .htaccess file?

Answer by: Andrew Hickl, Aplus.Net Knowledge Base Support

Here’s how to create a text file suitable for an .htaccess file:

  1. Open up a text editor on your computer. We recommend that you use Notepad (Windows), SimpleText (Macintosh), or Emacs (Linux / UNIX).
  2. Save the file (in an easy-to-find location) as .htaccess (including the initial dot).
  3. Now, make sure that your text editor did not append a .txt suffix to the file name.  (In Windows, you can do this by right-clicking the icon for the text file and selecting Properties.) If the file name does have a .txt suffix (i.e. '.htaccess.txt'), remove the suffix by renaming the file.
  4. Before entering code into your new file, make sure that Word Wrap is turned off. (In Notepad, select Format… from the top navigation bar and make sure that Word Wrap is unchecked. This is important because most .htaccess commands need to be placed on one line only.
  5. You can now enter your code into the file.
  6. Upload the .htaccess file into your web space in ASCII mode. The .htaccess file will affect the folder that it is uploaded to and all its subfolders.

You may check the following web address for a comprehensive guide on the functionality of the .htaccess files:

Important: If you have a Windows-based hosting plan, you cannot use .htaccess files.

Related link:

Customer Feedback
Rate:  54% | Views: 4445 | Please Rate:  
 
If you have other comments or ideas for future technical tips, please type them here:

Email: (optional)

Comments: (optional)

 Domain Name Registration | Asp Hosting    Back to serch results
Browse the Base
Knowledge Base
Shared Hosting
  Unix Plans
    MySQL
Messages
 

FREE traffic-retaining tools

You work hard to get visitors to your site. Why not try to keep them there? Aplus.Net has FREE tools to keep visitors in case of errors. For example, the Custom Error Pages Manager allows you to create a customized error message to explain the problem, and the Re-Direct URL tool to help guide a lost visitor. Your visitors will appreciate it! Check them out under the "Setup" tab in the Control Panel!
More info...

Private Area
 
Ask
in Private
   
Personal
Folder
 
Related Questions
 
1. I have a Unix-based shared hosting plan. How can I change permissions for files/directories using the File Manager?
 
2. How can I protect directories?
 
3. How to Set Up a Storefront ?
 
4. What are the permissions on files and directories?
 
5. In Unix, what is the find command, and how do I use it to search through directories for files?
 
Related Articles
 

Important tips on selecting your web hosting company.Web Hosting ...

How to choose your web hosting plan.

How to choose a proper cheap web hosting service.Web Hosting ...

Home Browse Search Ask in Private Personal Folder   Help
powered by web hosting 
  Logged as: Guest