<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /android/

# Append .html extension if the .html file exists
RewriteCond %{REQUEST_FILENAME}.html -f
RewriteRule ^([^/]+)/?$ $1.html [L]

# Rewrite requests to index.html if no matching file or directory exists
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^ index.html [L]
</IfModule>