1. Home
  2. Support
  3. Scripting
  4. .htaccess Guides

.htaccess Guides

.htaccess files can be used to alter the configuration of the Apache Web Server.
For useful code to use in your .htaccess file, please see here.

Creating a .htaccess File

The .htaccess is a configuration file utilised by Apache web servers to alter a websites functionality.

1. Open a text editor such as Notepad ++.

2. From the View menu, ensure that Word Wrap is unchecked.

3. Click File > Save As.

4. Set the file type to All Types.

5. Name the file .htaccess and click Save.

Uploading your .htaccess via Filezilla

1. If you do not have a copy already, download & install Filezilla.

2. Open Filezilla and connect to your ftp account.

3. From the left hand menu, open the directory that contains your .htaccess file.

4. From the right hand open the web directory you wish to upload the .htaccess file to.

5. Drag the .htaccess file from your computer into the web directory.

Viewing the .htaccess in Filezilla

.htaccess is a hidden file by default, so an FTP client must be configured to view hidden files in order to make future edits to the .htaccess file.

1. Open Filezilla and select Server > Force showing hidden files.

2. Your .htaccess will now be viewable in Filezilla.

Editing the .htaccess File in Filezilla

Once you have found the code you wish to implement in your .htaccess, you will need to place it into your file.

1. Open Filezilla and connect to your FTP account.

2. Navigate to the directory the contains your .htaccess file.

3. Right click the .htaccess file and select View/Edit to open the file in your default text editor.

4. Input the code you wish to implement on your domain and select File > Save.

5. Within Filezilla a window prompt will appear. Select Yes to upload the changes made to your .htaccess file to the server.

Was this article helpful to you?

Last modified: 14/08/2019