I am getting trouble remove a thing from the URL

I wish to take away the word 'index' from the URL, I simply have no idea the code to get it done.

I believed something similar to the next:

RewriteRule www.example.com/$ www.example.com/index/$1

Sorry I can not do a lot more.

Thanks ahead of time everybody!

I suppose you're using apache.


RewriteCond %{REQUEST_URI} ^\/index[\/]*$
RewriteRule (.*)$ / [QSA,L]