• Good day,

    I’m having to contact my hosting provider every time as I’m getting time out errors on my website.

    This is due to some code that is being added by some kind of plugin etc that interferes with the website’s .htaccess file.

    The code that is blocking this is:
    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

    Can I ask if you can advice which plugin creates this code on my website, so I can remove the plugin. My website has been offline more than 30 times in Jan as a result.

    My URL: https://techtechy.com
    Thank you

Viewing 7 replies - 1 through 7 (of 7 total)
  • That is the main WordPress htaccess code. It is what translates pretty permalinks into the underlying URL that WordPress needs to work with. It is added to the htaccess file by WordPress not by a plugin. Without that code permalinks won’t work.

    Thread Starter bohdanruz

    (@bohdanruz)

    Something in the code, causes a time out error 30 times a month. Is there any way how to prevent this?

    What makes you think it is something in the htaccess code that is causing a time out? All that code does is turn http:/domain.com/my-post/ into https://domain.com/index.php?p=123

    I’m not saying you aren’t having timeouts. I’m asking why you think the htaccess code is the source of the timeout.

    Thread Starter bohdanruz

    (@bohdanruz)

    Good day, I had this issue today again. My site was offline and this is the info I got from my hosting provider:

    bohdan: can you please advice what the exact issue is for me to pass this info on to WordPress to resolve the issue perm…

    Scott Morris: I have deleted codes from the .htaccess file and now the website is working fine at https://techtechy.com/

    bohdan: which codes was deleted delete?

    bohdan: I am not ammending the file at all. It must be some plugin then

    Scott Morris: The codes which I have deleted are:

    Scott Morris: # BEGIN WordPress

    Scott Morris: <IfModule mod_rewrite.c>

    Scott Morris: RewriteEngine On

    Scott Morris: RewriteBase /

    Scott Morris: RewriteRule ^index\.php$ – [L]

    Scott Morris: RewriteCond %{REQUEST_FILENAME} !-fRewriteCond %{REQUEST_FILENAME} !-d

    Scott Morris: RewriteRule . /index.php [L]

    Scott Morris: </IfModule>

    Scott Morris: # END WordPress

    bohdan: How did this get there in the first place if this code is the wrong code?

    Scott Morris: It appears that there is some error in this code.

    Scott Morris: Contact the plugin providers to set proper codes.

    bohdan: Ive got about 30 plugins. Is there no way to know which one is causing this?

    Scott Morris: Unfortunately, no.

    Could you please help me to resolve this WordPress htaccess code issue?

    Thank you

    Now that this code is gone, are your permalinks working? If they are, great.

    Thread Starter bohdanruz

    (@bohdanruz)

    Yes, it’s working for the moment.
    I’m having to report this issue 20-30 times a month as it is re-apearing every time.

    i would appreciate it very much what is causing it?

    Thank you
    Bohdan

    Your host cleared up what he said was the problem. Why don’t you wait to see if the problem reappears? And, since the host said they resolved the problem by removing the lines from htaccess, if the problem reappears the first thing I would do is go back to the host and ask them why it is back after they already fixed it.

    It seems to me unless the host comes back and says says what is happening is out of the realm of what they support that you have a need to delve deeper into your WordPress configuration.

    You of course know the history of what you have been dealing with. I may not fully understand the history of your situation. However, based on what you wrote, it sounds like at the moment you no longer have a problem. Unless it returns.

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