Hello - Help! I had to change

Hello - Help! I had to change my .htaccess file based on Hummingbird recommendations and now I uploaded it and now Upfront isn't working at all again. I think I uploaded it to the wrong place and in FileZilla I'm not able to see where it even is. I'm so close to finishing this website! Can you tell me where to put the .htaccess file so it works (because it worked last time) - Thank you!

  • Leslie Dyer

    Thanks for the quick response. I finally got the .htaccess file where it should be - the code in the file looks like this:
    # Only allow direct access to specific Web-available files.

    # Apache 2.2
    <IfModule !mod_authz_core.c>
    Order Deny,Allow
    Deny from all
    </IfModule>

    # Apache 2.4
    <IfModule mod_authz_core.c>
    Require all denied
    </IfModule>

    <IfModule mod_security.c>
    SecFilterEngine Off
    SecFilterScanPOST Off
    SecFilterRemove 00318
    </IfModule>

    <IfModule mod_php5.c>
    php_value post_max_size 64M
    </IfModule>

    # Akismet CSS and JS
    <FilesMatch "^(form|akismet)\.(css|js)$">
    <IfModule !mod_authz_core.c>
    Allow from all
    </IfModule>

    <IfModule mod_authz_core.c>
    Require all granted
    </IfModule>
    </FilesMatch>

    # Akismet images
    <FilesMatch "^(.+)\.(png|gif)$">
    <IfModule !mod_authz_core.c>
    Allow from all
    </IfModule>

    <IfModule mod_authz_core.c>
    Require all granted
    </IfModule>
    </FilesMatch>

    So now I have it in the right place but Upfront still isn't loading. Any ideas? Thank you

  • Adam Czajczyk

    Hello Leslie!

    Is this entire content of your site's .htaccess file? If so then it means that for some reason the core WP rules got stripped. If this is the case please add these rules at the top of the file and re-upload it to the server:

    # 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

    This is assuming your WordPress is a regular single WP installation that's residing in a "root folder" of the domain (not in a sub-folder).

    Let me know if it helped, please!
    Best regards,
    Adam