.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.

Uploading your .htaccess via Webshell

  1. Navigate to FTP/User Account > FTP User.
  2. Click the Login icon.
  3. Navigate to the domain you wish to add a .htaccess file to and click the Upload button.
  4. Select the Choose file button.
  5. Navigate to the folder containing your .htaccess file, select it, and press Open.
  6. Press the Upload button.

Viewing the .htaccess in Webshell

  1. Navigate to FTP/User Account > FTP User.
  2. Click the Login icon.
  3. Select the Settings button from the bottom right of the page.
  4. Click the Show hidden files checkbox and press Apply

Editing the .htaccess File in Webshell

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

  1. Navigate to FTP/User Account > FTP User.
  2. Click the Login icon.
  3. Navigate to the domain you wish to edit a .htaccess file for and click on the file.
  4. Click the Edit Icon.
  5. Input your desired code and select the Save button.