Mac OS X doesn't allow to name files starting with a dot. How do I name the .htaccess file?

后端 未结 8 1467
清歌不尽
清歌不尽 2021-01-30 03:44

As mentioned in the title, Mac OS X doesn\'t allow me to name files starting with a dot ( . ). But, I need an .htaccess file. Or, better, how do I use an htaccess file in Mac OS

8条回答
  •  感情败类
    2021-01-30 04:34

    You can create files that begin with a "." if you can view hidden files.

    Enter the following commands to show hidden files:

    defaults write com.apple.finder AppleShowAllFiles -bool YES
    killall Finder
    

    When you're done enter these commands to hide them again:

    defaults write com.apple.finder AppleShowAllFiles -bool NO
    killall Finder
    

提交回复
热议问题