How to rewrite HtAccess

How do I Rewirite the Htaccess form myurl.000webhostapp com/rules.html to this myurl 000webhostapp com/rules??

I think this will work

RewriteEngine On 
RewriteBase /
RewriteRule ^([^\.]+)$ $1.html [NC,L]
RewriteCond %{HTTP_USER_AGENT} libwww-php.* 
RewriteRule .* ? [F,L]

@Daniel7D3v If above suggested method doesn’t work then follow this,
First make a “rules” directory in your “Public_html”,
then move “rules.html” to “rules” directory,
now rename “rules.html” to “index.html”.

Now you will to able to access “myurl.000webhostapp.com/rules”.