How to Create an .htaccess?

The way I’ve done it before was creating a file called " .htaccess", uploading it, and including something like

DirectoryIndex index.php inside it. Is it different for Dreamhost?

PS: The file I want redirected is called “index.php”, and I thought Dreamhost already configured that to be a redirection page. 0_o