Support Forums - Classified Ads Script Osclass
Unread
New Replies
Osclass Market
Download Osclass
Documentation
Home
Help
Search
Login
Register
500 error after adding image size reduction script to .htaccess file on php 7.4
Support Forums - Classified Ads Script Osclass
General osclass questions
General discussion
500 error after adding image size reduction script to .htaccess file on php 7.4
Match all words
Match any words
Most relevant results first
Largest topics first
Smallest topics first
Most recent topics first
Oldest topics first
Advanced
Unread posts
New replies
My topics
My posts
Print
Pages: [
1
]
Smithtech
219 posts
500 error after adding image size reduction script to .htaccess file on php 7.4
«
on:
February 18, 2021, 04:53:15 PM »
I was trying to implement the solutions discussed on this blog post.
https://osclasspoint.com/blog/improve-osclass-load-speed-b6
When I add the script provided on that page, my website stops working.
Below is the script.
Please could you help me?
<FilesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf)$">
Header set Cache-Control "max-age=604800, public"
mod_gzip_on Yes
mod_gzip_dechunk Yes
mod_gzip_item_include file .(html?|txt|css|js|php|pl)$
mod_gzip_item_include handler ^cgi-script$
mod_gzip_item_include mime ^text/.*
mod_gzip_item_include mime ^application/x-javascript.*
mod_gzip_item_exclude mime ^image/.*
mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
# BEGIN Expire headers
ExpiresActive On
ExpiresDefault "access plus 5 seconds"
ExpiresByType image/x-icon "access plus 2592000 seconds"
ExpiresByType image/jpeg "access plus 2592000 seconds"
ExpiresByType image/png "access plus 2592000 seconds"
ExpiresByType image/gif "access plus 2592000 seconds"
ExpiresByType application/x-shockwave-flash "access plus 2592000 seconds"
ExpiresByType text/css "access plus 604800 seconds"
ExpiresByType text/javascript "access plus 216000 seconds"
ExpiresByType application/javascript "access plus 216000 seconds"
ExpiresByType application/x-javascript "access plus 216000 seconds"
ExpiresByType text/html "access plus 600 seconds"
ExpiresByType application/xhtml+xml "access plus 600 seconds"
# END Expire headers
# BEGIN Cache-Control Headers
<filesMatch "\.(ico|jpe?g|png|gif|swf)$">
Header set Cache-Control "public"
<filesMatch "\.(css)$">
Header set Cache-Control "public"
<filesMatch "\.(js)$">
Header set Cache-Control "private"
<filesMatch "\.(x?html?|php)$">
Header set Cache-Control "private, must-revalidate"
# END Cache-Control Headersphp_value opcache.enable 0
php_value opcache.enable 0
Logged
MB Themes
Support team
17566 posts
Only quality matters
Download Osclass
Re: 500 error after adding image size reduction script to .htaccess file on php 7.4
«
Reply #1 on:
February 18, 2021, 04:54:34 PM »
@support
Try to remove this code:
Code:
[Select]
php_value opcache.enable 0
Logged
To get fast support, we need following details:
Detail description, URL to reproduce problem, Screenshots
Smithtech
219 posts
Re: 500 error after adding image size reduction script to .htaccess file on php 7.4
«
Reply #2 on:
February 18, 2021, 05:15:16 PM »
Hi
Please, I have removed the code but error still persists.
Logged
MB Themes
Support team
17566 posts
Only quality matters
Download Osclass
Re: 500 error after adding image size reduction script to .htaccess file on php 7.4
«
Reply #3 on:
February 19, 2021, 09:48:33 AM »
@support
Then I would check it with your hosting provider, maybe some options are not available on your hosting.
Logged
To get fast support, we need following details:
Detail description, URL to reproduce problem, Screenshots
Print
Pages: [
1
]