Leave a Reply

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

9 Comments

  1. Are you sure this code is legit, I mean when we go to WordPress.org and search htaccess it only shows basic coding?

    1. Yes the code is legit. When you have a fresh copy of WordPress the .htaccess has only few lines. But after you install it, you will find that some more lines are automatically added by WordPress for Proper functioning.

      In this Problem, Every time you log into or access /wp-admin . It will download a file called index.php instead of the dashboard. This happens due to compressing of files by some caching plugin or server.

      This code overwrites everything to make wordpress work as normal like before.

      I hope this helps you, If your problem is solved by this method. Kindly let us know in the comments section.

      Thank you for your time and valuable feedback.

      Regards
      Niraj

      1. I had faced this problem many time but at the end, it solves automatically, but this it is happening again and again. I was using cache plugin for a long time I don’t think so it never occurs because of that but for making it clear, I deactivated it and I am still facing the same problem. It doesn’t happen frequently like continuing 2-3 days, it occurs for 15-20 mins then came back to normal state then the process continues.
        For eg. if I am login to my WordPress and doing something like I am in plugins area, then this issue happens suddenly without doing anything, and then when I click on something for eg I clicked on the customization tab it starts downloading customize-PHP file. Or I open my site it starts downloading a file called *download* with nothing in that. I have the latest version of PHP and everything is up to date. I almost 15 articles on this problem. Please help me out with the solution. Thanks

  2. Are you sure this code is legit, I mean when we go to WordPress.org and search htaccess it only shows basic coding?

    1. Yes the code is legit. When you have a fresh copy of WordPress the .htaccess has only few lines. But after you install it, you will find that some more lines are automatically added by WordPress for Proper functioning.

      In this Problem, Every time you log into or access /wp-admin . It will download a file called index.php instead of the dashboard. This happens due to compressing of files by some caching plugin or server.

      This code overwrites everything to make wordpress work as normal like before.

      I hope this helps you, If your problem is solved by this method. Kindly let us know in the comments section.

      Thank you for your time and valuable feedback.

      Regards
      Niraj

      1. I had faced this problem many time but at the end, it solves automatically, but this it is happening again and again. I was using cache plugin for a long time I don’t think so it never occurs because of that but for making it clear, I deactivated it and I am still facing the same problem. It doesn’t happen frequently like continuing 2-3 days, it occurs for 15-20 mins then came back to normal state then the process continues.
        For eg. if I am login to my WordPress and doing something like I am in plugins area, then this issue happens suddenly without doing anything, and then when I click on something for eg I clicked on the customization tab it starts downloading customize-PHP file. Or I open my site it starts downloading a file called *download* with nothing in that. I have the latest version of PHP and everything is up to date. I almost 15 articles on this problem. Please help me out with the solution. Thanks

  3. i try this tipe but not work with me

    i change password Database and edit it in wp-config
    and remove all in htaccess file
    and add this only and it fixed
    # BEGIN WordPress

    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]

    # END WordPress