where is my .htaccess file?

Hello - I am setting up a local development environment of WP multisite. The WPMU article by Harley Alexander has been excellent so far:

https://premium.wpmudev.org/blog/local-wordpress-test-environment-mamp-osx/

One of the last steps in setup is to make adjustments to the .ht access file. There is no .htaccess file in my wordpress folder so I am not sure what to do. I don't want to break anything. Can anyone help?

I'm using MAMP pro on mac os 10.7.5

Thanks!

  • Jack Kitterhing
    • Code Norris

    Hi there Ted,

    I hope you are well today, your .htaccess file should be in your root directory of your local install. But since you are on a OS X, OS X hides dot (.) files by default.

    You will need to open up Terminal, Paste the following line

    defaults write com.apple.Finder AppleShowAllFiles YES

    Press enter/return

    Right click on the finder icon and click relaunch. Your hidden files should now appear.

    Thank you for being a WPMU DEV member :slight_smile:

    Kind Regards
    Jack.

  • Ted
    • WPMU DEV Initiate

    Thanks Jack,

    You are correct. any file with a .dot in front of it is automatically hidden in the mac. Please note that the finder will only reveal hidden files after a restart. I did what you said, restarted and now can see the .htaccess.

    Also, if anyone else runs into the same problem, the wordrpress codex clarified what to do if you don't have an .htaccess file and want to set up multisite.

    http://codex.wordpress.org/Create_A_Network

    If you do not have a .htaccess file, then create it in the same directory as your wp-config.php file.

    Thanks for your help guys! It seems I'm now up and running using multisite as local development environment.

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.