S
S
sdfdfdf762021-08-23 00:17:20
WordPress
sdfdfdf76, 2021-08-23 00:17:20

Syntax error, unexpected, expecting end of file how to fix??

Hello, I'm trying to insert the code into function.php:

<IfModule mod_expires.c>
ExpiresActive On 
ExpiresDefault "access plus 6 month"
ExpiresByType text/css "access plus 6 month" 
ExpiresByType text/plain "access plus 6 month"
ExpiresByType image/gif "access plus 6 month"
ExpiresByType image/png "access plus 6 month" 
ExpiresByType image/jpeg "access plus 6 month" 
ExpiresByType application/x-javascript "access plus 6 month"
ExpiresByType application/javascript "access plus 6 month"
ExpiresByType application/x-icon "access plus 6 month" 
</IfModule>

gives me:
Your PHP code changes were rolled back due to an error on line 468 of file wp-content/themes/fox/functions.php. Please fix and try saving again.
syntax error, unexpected '<', expecting end of file


(line 468 - consider that the first one)
can this be fixed?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
galaxy, 2021-08-23
@galaxy

Why put the code for .htaccess in functions.php?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question