If you are seeing this, your server rewrite rules have not been set up correctly.

Hi, The error is pretty clear, however I do not know what is wrong with my htaccess file?

[2020-10-16 07:31:00] production.DEBUG: Static cache loaded [https://####.org/favicon.ico] If you are seeing this, your server rewrite rules have not been set up correctly.  
[2020-10-16 07:31:05] production.DEBUG: Static cache loaded [https://####.org/] If you are seeing this, your server rewrite rules have not been set up correctly.  

.htaccess

<IfModule mod_rewrite.c>
    <IfModule mod_negotiation.c>
        Options -MultiViews -Indexes
    </IfModule>

    RewriteEngine On

    # Handle Authorization Header
    RewriteCond %{HTTP:Authorization} .
    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

    # Redirect Trailing Slashes If Not A Folder...
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_URI} (.+)/$
    RewriteRule ^ %1 [L,R=301]

    # Send Requests To Front Controller...
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^ index.php [L]

    # Redirect http to https
    RewriteCond %{HTTPS} !=on
    RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

    #Rewrite www.example.com → example.com
    RewriteCond %{HTTP_HOST} ^www.stokeorchard.org [NC]
    RewriteRule ^(.*)$ https://stokeorchard.org/$1 [L,R=301]

    # Caching Strategy Full - Remember to change config/statamic/static_caching
    RewriteCond %{DOCUMENT_ROOT}/static/%{REQUEST_URI}_%{QUERY_STRING}\.html -s
    RewriteCond %{REQUEST_METHOD} GET
    RewriteRule .* static/%{REQUEST_URI}_%{QUERY_STRING}\.html [L,T=text/html]
</IfModule>

SetEnv COMPOSER_HOME '/opt/cpanel/composer/bin'

# One year for image files
<filesMatch ".(jpg|jpeg|png|gif|ico)$">
Header set Cache-Control "max-age=31536000, public"
</filesMatch>

# One month for css and js
<filesMatch ".(css|js)$">
Header set Cache-Control "max-age=2628000, public"
>>>>>>> Unanswered <<<<<<<
4 Replies
2 Followers