301 redirect works on other pages, but not on home page
Permalink
I have used 301 redirects on my website, which redirects pages with .html to pages without .html extension. For e.g.www.www.codersvolt.com/services.html... redirects towww.www.codersvolt.com/services...
Those redirects works, but when I open home-page,http://www.codervolt.com , it redirects tohttp://www.codersvolt.com/index/ which does not work. It should open home page.
Those redirects works, but when I open home-page,http://www.codervolt.com , it redirects tohttp://www.codersvolt.com/index/ which does not work. It should open home page.
<IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME}/index.html !-f RewriteCond %{REQUEST_FILENAME}/index.php !-f RewriteRule . index.php [L] </IfModule> RedirectMatch 301 (.*)\.html$ http://www.codersvolt.com$1/