1

Main site url

I have removed the index.hmtl file from root but still site is redirecting to index.html and i couldn't find any mode rewrite in the htaccess file. But site is still redirecting to index.html.

How to remove the redirection or re - redirect into index.php

Suggest me please.

4
  • RewriteRule ^/index.html$ yoursite.com/index.php/[R=301,L]
    – seb
    Commented Sep 23, 2015 at 8:22
  • no luck @Thomas Commented Sep 23, 2015 at 9:13
  • Goto System->configuration-> on left side select web->Search Engines Optimization set yes
    – Magento 2
    Commented Sep 23, 2015 at 9:49
  • It is already set to yes. Commented Sep 23, 2015 at 10:00

1 Answer 1

1

goto your htaccess file of magento root dir

Find DirectoryIndex and set index.php as default index file

Put it code as

DirectoryIndex index.php

If it doest not work then discuss with your hosting provider They may be define default index in apache config. file.

Also check the system in private browser

3
  • DirectoryIndex index.php is already in the .htaccess file and it is correct Commented Sep 23, 2015 at 8:27
  • @BishalNeupane perhaps your apache config does not allow overwrites thats why your htaccess is not working Commented Sep 23, 2015 at 8:29
  • Can i configure the apache config file with godady hosting Commented Sep 23, 2015 at 8:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.