Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Danny van Kooten

    (@dvankooten)

    Hi there,

    Can you copy & paste what your .htaccess rules (in the root folder of your website) look like?

    For some reason, the request to the CSS file is rewritten to the WordPress index.php file which will basically load the website once again. Hence the slow load time.

    A “proper” .htaccess file (without any caching rules) should look something like this.

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

    These are the default rules generated by WordPress. The following part is especially important in this case.

    RewriteCond %{REQUEST_FILENAME} !-f

    This will check if the request file exists and if it does, it won’t rewrite the request to the index.php file.

    A bit technical but I hope that helps!

    Thread Starter foreclosurepedia

    (@foreclosurepedia)

    # 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

    Thanks for taking a look BTW. I know it’s the weekend and folks are busy. I am on the road during the day so if I do not respond immediately that is generally why. I am also Eastern Time Zone US.

    Plugin Author Danny van Kooten

    (@dvankooten)

    Hi there,

    Hm, there seems to be nothing wrong with your .htaccess file. Can you check if the file actually exists in the requested location?

    /wp-content/plugins/mailchimp-for-wp/assets/css/css.php

    You can check it with any FTP-program like FileZilla.

    If the file doesn’t exist, re-installing the plugin should simply fix it.

    Thread Starter foreclosurepedia

    (@foreclosurepedia)

    I went in cPanel and the file is there. I am including the entire call which keeps appearing as well as the entire .htaccess file. I also have the wp-content locked down with a separate .htaccess

    https://foreclosurepedia.org/wp-content/plugins/mailchimp-for-wp/assets/css/css.php?checkbox=1&form=1&ver=1.5.1

    # 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>

    # Protect WP Config
    <files wp-config.php>
    order allow,deny
    deny from all
    </files>

    # Prevent Directory Browsing
    # directory browsing
    Options All -Indexes

    # Prevent Hotlinking
    RewriteEngine on
    RewriteCond %{HTTP_REFERER} !^$
    RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?foreclosurepedia.org [NC]
    RewriteRule \.(jpg|jpeg|png|gif)$ – [NC,F,L]

    # Secure The File
    <files ~ “^.*\.([Hh][Tt][Aa])”>
    order allow,deny
    deny from all
    satisfy all
    </files>

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘404 Error’ is closed to new replies.