How To Avoid Download Web Page Instead Of Display In Wordpress

My website is a WordPress website hosted by These days i found that when i browse a web page, the browser do not display the web page content but download the page as index.html. This confused me some days. After investigate for a long time, i finally find the method to resolve this problem.

1. Remove AddHandler In .htaccess File.

  1. Go to your website’s public html root folder ( such asĀ  /home1/***/public_html ) .
  2. Open and editĀ .htaccess file.
  3. Remove below AddHandler code ( those code maybe added by some WordPress plugin such as wp super cache when install or uninstall the cache plugin) by comment it.
    # BEGIN WordPress
    # AddHandler application/x-httpd-php70s .php
  4. Browse the web page again, then you can find the error fixed. If still not fixed then ask your WordPress provider for help.
READ :   How To Modify Http Response Header In WordPress

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.