Creating and editing a file using Filezilla

You can use an FTP client to create and edit files for your website. This is an easier way to create and edit files compared to using the command line. You can use any FTP client you like, but this article uses the FTP client 'Filezilla'. Visit the following page to download this free program:

If you'd like instructions on how to edit a file via SSH, please view the following article:

Creating a file

Follow all steps below to log into your server and create a file.

  1. View the 'FTP overview' article to log into your server using an FTP client.
  2. Make sure your client is configured to show hidden files
    Filezilla_editing_01.png
  3. Once you're logged in, make sure you're in the correct directory to create the file. You can see the directory in the right pane. It's a field titled "Remote site". In this example, the directory is /home/example_username/example.com.
  4. Right click and choose 'Create new file'.
    Filezilla_editing_02.png
  5. A prompt appears for you to enter the name of the file. In this example a file named .htaccess is being created. Click the OK button to save.
    Filezilla_editing_03.png
  6. You can now see the empty file exists on the server.

Editing a file

Follow all steps below to edit an existing file.

  1. View the 'FTP overview' article to log into your server using an FTP client.
  2. Once you're logged in, make sure you're in the correct directory to create the file. You can see the directory in the right pane. It's a field titled "Remote site". In this example, the directory is /home/example_username/example.com.
    Filezilla_editing_04.png
  3. Right click the file and choose 'View/Edit'.
    Filezilla_editing_05.png
  4. A prompt displays asking you to choose a text editor. You can choose a specific editor you've already installed, but the easiest option is to use the default editor for Windows which is Notepad.
    Filezilla_editing_06.png
  5. Notepad opens the file. Add any text necessary to the file.
    Filezilla_editing_07.png
  6. When finished, click 'File > Save'.
    Filezilla_editing_08.png
  7. After a few seconds, a prompt displays. Check the box and click 'Yes'.

The file is now updated on your web server.

See also

Did this article answer your questions?

Article last updated .