Feature #10027 Auto generate .htaccess

http://tracker.modx.com/issues/10027