How remove 'index.php' from URL with .htaccess?

Hello Everyone!
If you want remove the index file name like index.php , index,html etc from the site url(http://raghunathgurjar.wordpress.com/index.php) then this post will be very helpful for solve your problem.
URL Before Changes :-

before

For that you have just need to add given code in your .htaccess file

//code
RewriteRule ^(.*)index\.(htm|html|php)$ http://%{HTTP_HOST}/$1 [R=301,L]

URL After Changed :-

after

Enjoy Code!

5 Replies to “How remove 'index.php' from URL with .htaccess?”

  1. Have you ever considered publishing an ebook or guest authoring on other sites?
    I have a blog based on the same information you discuss and would love to have you share some stories/information.
    I know my readers would enjoy your work. If you
    are even remotely interested, feel free to send me an email.

Leave a Reply

Your email address will not be published. Required fields are marked *