How to edit htaccess, robots.txt and other website configuration files

Olga Weis

Maybe you already know that besides basic file management operations, Commander One is capable of working with FTP, FTPS and SFTP servers. As this application is originally designed as dual-panel file manager, it is perfectly suitable for working with FTP file structure.

However, uploading, downloading and browsing is just the part of working with FTP files. The convenient files editing is equally important.

Although it is clear enough how to edit general files using Commander One, you may face some difficulties if you want to access hidden .htaccess file, or other online data. Let’s take a look at a few scenarios, which will help you optimize the workflow with your website configuration files.

What is .htaccess?

Hypertext access file is a configuration file, supported by most web servers, that regulates access to web pages, handles URL redirections, URL shortening, controls access security, etc. Basically, this file manages who and how can access the folder where it is located. Due to being highly important configuration file, it has a hidden status, not to be mistakenly deleted or corrupted.

The most efficient way to edit and manage .htaccess files on a web-server is FTP client with the ability to display hidden files. Luckily Commander One is the best FTP client for Mac that has a handy switch for hidden files display in its toolbar.

First of all, to edit an .htaccess file, you need to make sure that your web-server supports FTP connection. If it does, navigate to Commander One → Go → Connect to Server… menu, or use a Connections Manager button, in the right part of the toolbar in Commander One main window.

Now choose protocol supported by your server: FTP, FTPS (Implicit or Explicit) or SFTP, and establish connection using your login credentials.

Once the connection is established, you will see your online server among the mounted drives in Commander One window. Choose it in either panel to see the file structure of your website.

The .htaccess file is a directory-level file, which means that it is located in each folder on your server to individually regulate the access to all locations. To see it, use a “Show Hidden Files” switch in Commander One toolbar.

Then, select the file, copy it to your Mac, and press F4 button on your keyboard, or navigate to File → Edit menu. The file will be opened in the default text editor set up in your system. Once you perform all the necessary modifications, just save the .htaccess file and drag it back to the panel where your server is opened. That’s it, what could be easier.

Edit robots.txt file

Every web-developer knows the necessity of robots.txt file, which regulates the access of search engines’ crawlers and other web-robots to your web-sites data. And, each of you has own method to edit and manage this file on the servers. We offer you to check and try Commander One not only for this purpose, but to maintain whole data on your FTP server in handy dual-panel file manager.

To edit robots.txt file on your web site, you just need to establish an FTP connection with your server, using new Connections Manager in Commander One:

Once the connection is established, your web-server will be opened in the selected panel in Commander One window. The robots.txt file should be located in root directory of the file structure. Copy it to your Mac, open using F4 shortcut on your keyboard, or Commander One File → Edit menu.

Perform the necessary modifications in your default editor for TXT files and save the file. Then upload it back to the server with simple drag-and-drop.

This way you can edit any text file on your web and FTP servers in a few simple steps. Besides this awesome functionality, Commander One is also capable of managing archives; accessing data stored in cloud storages, like Google Drive, OneDrive, Dropbox and Amazon S3; mounting iOS and Android devices, as well as MTP devices to your Mac; accessing not only FTP, but WebDAV servers as well, and much-much more.

Full functionality of Commander One PRO Pack is available for 15 days trial period for free. Try it now and enjoy all the benefits of centralized file management solution.

More information about the app is available at our web-site and social networks: Facebook, Twitter and Google+.

/ / / How to edit htaccess, robots.txt and other website configuration files

Commander One

Requirements: OS X 10.10+ , 13.1Mb free space
Version 1.7.4(2445) (21st Sep, 2017) Release notes
Category: System Utilities