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

后端 未结 8 1448
清歌不尽
清歌不尽 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条回答
  •  -上瘾入骨i
    2021-01-30 04:30

    You can't do this with the Finder. Open Terminal.app (Applications -> Utilities -> Terminal), and type:

    > cd /path/to/directory/containing/htaccess
    > mv current_file_name .htaccess
    

    Example (do not take directory names or initial filename literally, of course):

    terminal screenshot

提交回复
热议问题