WordPress .htaccess Yeoman Generator

WordPress .htaccess Yeoman Generator is a Yeoman Generator that will generate a  .htaccess file specifically for WordPress.


npm install -g generator-wordpress-htaccess


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