• Anytime I make changes to my site, it is no longer accessible, and forces a ‘downloadable’ file. I reached out to my hosting company, and they told me that anytime I make a change to the site via the WordPress Dashboard, it’s triggering the issue with the .htaccess file.

    To fix it, I’ve had to go into my file manager, delete the existing .htaccess and create a new one using the following code, which does in fact fix the issue.

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On RewriteBase /
    RewriteRule ^index.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    # END WordPress

    However, I am at a stand still and can’t make change to my site at this point because each time it reverts back.

    Currently, the site is functional. I can’t make any changes to it, otherwise the issue will recur.

    I am set up with Bluehost on their Plus plan on shared hosting platform.

    Please help! Thank you!

    The page I need help with: [log in to see the link]

Viewing 9 replies - 1 through 9 (of 9 total)
  • Hi @jauiboyd,

    What changes would you like to make on .htaccess? Editing .htaccess should be done carefully and not without knowing what you tweak, because otherwise you might end up with a non-working site, as you’ve experienced.

    Thread Starter jauiboyd

    (@jauiboyd)

    Hi, I am not trying to change the .htaccess file. I was logged into my dashboard for WordPress, making updates to my website and whenever I make/save changes or activate plugins, the site breaks and forces a downloadable file and then my site is no longer accessible. When I contacted my hosting company (on multiple occasions) they told me that something is wrong with the WordPress file (.htaccess inside the public_html) and anytime I make changes it changes that code (or does something to it). They told me it’s something to address with WordPress and not related to hosting or the theme that I am using.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    WordPres will only reset you to the default .htaccess if you do a force-create, which just visiting the admin pages does not do.

    This is more than likely related to a plugin (or your theme) that isn’t working right. Have you tried disabling all your plugins? You can rename the plugin folder to plugins-off to do that.

    @ipstenu, it surely looks like a plugin issue. Maybe a security or caching plugin? They’re usually notorious about it…

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Without any information as to what jauiboyd has installed, the best I can recommend is to start with the basics.

    Turn everything off. See if it happens. It SOUNDS like BH is saying they checked for hacks. I hope so…

    Thread Starter jauiboyd

    (@jauiboyd)

    Thank you all for your feedback, I will try to disable all plug-ins and see if that is the source of the issue. Thank you.

    Thread Starter jauiboyd

    (@jauiboyd)

    I went ahead and changed the plugin file to plugin-off. Then I changed it back to plugin, and one by one started to activate my plugins, until I found the culprit. Deleted several unwanted plugins, and have been able to make several changes without any problems. Thank you so much for your help! I’m going to consider this issue resolved.

    I was attempting to activate the LiteSpeed Cache plugin and I got this longish error message:
    ERROR 9042: .htaccess file not writable.
    Please add/replace the following codes into the beginning of /wordpress/core/4.9.5/.htaccess:

    # BEGIN NON_LSCACHE
    ## LITESPEED WP CACHE PLUGIN – Do not edit the contents of this block! ##
    ### marker MINIFY start ###
    <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} ^(.*)/min/(\w+)\.(css|js)$
    RewriteCond %1/wp-content/cache/$2/$1.$2 -f
    RewriteRule min/(\w+)\.(css|js) wp-content/cache/$2/$1.$2 [L]
    </IfModule>
    ### marker MINIFY end ###

    ## LITESPEED WP CACHE PLUGIN – Do not edit the contents of this block! ##
    # END NON_LSCACHE

    >> The site I manage is hosted by WordPress.
    Does this mean that I cannot use SSH or FTP to change file permission to 644??
    And if not, what can I do to get this site to load a bit faster?

    Thank you

    Jay

    Thread Starter jauiboyd

    (@jauiboyd)

    Hi Jay,

    I do not have the expertise to answer this, so hopefully someone else can chime in and help out! Good luck!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘.htaccess file’ is closed to new replies.