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

后端 未结 8 1445
清歌不尽
清歌不尽 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:32

    Use Terminal.

    1. Open Terminal.

    2. Change Directory to source folder where you want to create the file

      • cd Desktop
    3. Create the file using touch

      • touch .htaccess
    4. Open the file in any text editor

      • atom .htaccess

提交回复
热议问题