Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter sadlion

    (@sadlion)

    @dreadpiratebonney

    Yes, the problem is with Bluehost. I explained how I resolved my issue in my posts. Perhaps you missed it. Here is a quick re-cap.

    PROBLEM: after moving from Bluehost to GoDaddy hosting the migration would not allow me to save permalinks since every link on the dashboard or website would cause the browser to download a PHP file.

    CAUSE: Bluehost (and most likely one of the plug-ins it installed with the WordPress installation) was writing an extra line in the .htaccess file.

    This line: AddHandler application/x-httpd-php70s .php

    It looks something like this in the .htaccess file

    # BEGIN WordPress
    AddHandler application/x-httpd-php70s .php
    <IfModule mod_expires.c>
    ExpiresActive On
    ExpiresByType image/jpg “access plus 6 hours”
    ExpiresByType image/jpeg “access plus 6 hours”

    SOLUTION: Edit the .htaccess file so it looks like this:

    # BEGIN WordPress
    <IfModule mod_expires.c>
    ExpiresActive On
    ExpiresByType image/jpg “access plus 6 hours”
    ExpiresByType image/jpeg “access plus 6 hours”

    SOLVED!

    Goodbye forever Bluehost. I am so glad you’re out of my life! I can’t believe you are the #1 host recommended for WordPress! My sites were always down 3 to 4 times a week.

    Thread Starter sadlion

    (@sadlion)

    Hello Igor and thank you for taking the time to look into this.

    You created an amazing plugin. Ad Inserter is awesome.

    I am sorry if I mistakenly singled out your plugin but it was the only thing I could come up with.

    Here is the .htaccess file. The second line is the extra one.

    # BEGIN WordPress
    AddHandler application/x-httpd-php70s .php
    <IfModule mod_expires.c>
    ExpiresActive On
    ExpiresByType image/jpg “access plus 6 hours”
    ExpiresByType image/jpeg “access plus 6 hours”

    Since I did not have Ad Inserter installed on any other site and all other migrations worked fine, I assumed it was the culprit.

    I am probably mistaken.

    Thank you for clarifying that!

    Thread Starter sadlion

    (@sadlion)

    Found the problem. This drove me crazy for two days! I hope writing down the solution will help others and save people some time.

    The problem was with the plugin Ad Inserter

    It was writing a line of code in the .htaccess right between:

    # BEGIN WordPress
    <<<HERE>>>
    <IfModule mod_expires.c>

    THERE IS DEFINITELY A COMPATIBILITY ISSUE WITH THE All-in-One WP Migration AND THE Ad Inserter plugin.

    Causing the new server not to hold the .php files. After the migration, when trying to access the website or clicking on any link on the site or dashboard the browser would just try to download the file.

    It seems to be working now. Fingers crossed!

    Thread Starter sadlion

    (@sadlion)

    I think that’s it.

    All of my other exports are named https://www.domain.com-xxx but this particular one is always missing the www in front of the name. Could that be the problem?

Viewing 4 replies - 1 through 4 (of 4 total)