How can I make an htaccess file on a Mac? [closed]

Open up terminal. Found in Utilities.

Type:

cd /path/to/htaccess/file/
mv 1.htaccess .htaccess

For future edits of the htaccess file I’d recommend learning to use vi in the terminal.

cd /path/to/htaccess/file/
vi .htaccess

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)