Yeoman Generator to generate a WordPress .htaccess file.

Buy on Gumroad or Member Download

Install

npm install -g generator-wordpress-htaccess

Usage

yo wordpress-htaccess

If you generate the .htaccess file in a directory that is not the directory where your WordPress installed, you will need to move the .htaccess file.

mv .htaccess /path/to/wordpress