How to Edit .htaccess Files on Mac OS X

Open your FTP client and log in to your server., Go to the root folder of your directory and look the for the .htaccess file., Copy this file to your desktop or any other folder where you store your website files., Open Terminal and enter the...

6 Steps 1 min read Medium

Step-by-Step Guide

  1. Step 1: Open your FTP client and log in to your server.

    FileZilla is an example of a widely used and free FTP client.
  2. Step 2: Go to the root folder of your directory and look the for the .htaccess file.

    It is a hidden file, so you might need to set your FTP client to show hidden files.

    This is typically in the "View" menu. , The file will immediately disappear.

    Don't worry, it's still there, it's just invisible. ,, All hidden files, such as your .htaccess file, should now be visible.

    To reverse this, go to terminal app and type in the same command, but with "NO" instead of "YES".
  3. Step 3: Copy this file to your desktop or any other folder where you store your website files.

  4. Step 4: Open Terminal and enter the following command:  defaults write com.apple.finder AppleShowAllFiles YES

  5. Step 5: Relaunch your finder app

  6. Step 6: by right clicking the icon in the dock menu and clicking restart/relaunch.

Detailed Guide

FileZilla is an example of a widely used and free FTP client.

It is a hidden file, so you might need to set your FTP client to show hidden files.

This is typically in the "View" menu. , The file will immediately disappear.

Don't worry, it's still there, it's just invisible. ,, All hidden files, such as your .htaccess file, should now be visible.

To reverse this, go to terminal app and type in the same command, but with "NO" instead of "YES".

About the Author

T

Timothy Vasquez

Experienced content creator specializing in practical skills guides and tutorials.

53 articles
View all articles

Rate This Guide

--
Loading...
5
0
4
0
3
0
2
0
1
0

How helpful was this guide? Click to rate: