>Please help me to hide my site’s url with htaccess My site url is http://somesite.am/Site/am/index.php and want it to become http://somesite.am
This is _not_ a job for htaccess. If you want to use a particular address in the address bar, type it there.
Do This!
NOT THIS, silly!
mod_rewrite’s job (whether in apache’s config or an htaccess file) is to rewrite requests _for the server_, not for the browser.
When someone types/clicks `http://somesite.am`, mod_rewrite can catch that URL and rewrite it so it serves what you desire. For example,
RewriteEngine On
# sends all requests for “/” to “/Site/am/index.php”
RewriteRule ^/$ /Site/am/index.php