我想用.htaccess摆脱一些路径

My url appears something like this https://sabaclothingscom.000webhostapp.com/sabaclothings/

https://sabaclothingscom.000webhostapp.com/sabaclothings/contacts

i want to get rid of this ==> .000webhostapp.com/sabaclothings/

so that my url should appear like this

https://sabaclothings.com/     <=== index


https://sabaclothings.com/contacts

i have successfully removed .html extension using this code ===>

RewriteEngine on


RewriteCond %{THE_REQUEST} /([^.]+)\.html [NC]
RewriteRule ^ /%1 [NC,L,R]

RewriteCond %{REQUEST_FILENAME}.html -f
RewriteRule ^ %{REQUEST_URI}.html [NC,L]

please help me thanks in advance..

The .000webhostapp.com part is the "host" or "domain" part of the URL.

You can NOT get rid of the "domain" part with rewrite rules.

You can get rid of that domain by owning your own domain and pointing the domain at the IP of your web-server in a DNS (Domain Name Server). You will then need to configure the web-server to accept the domain.

The result would still be something like sabaclothings.com, not sabaclothingscom.