Hola,
En algún momento mi servidor genera un código de error PHP 500 y mi sitio se descompone
Aquí está mi registro de Apache.
[Thu Jan 29 19:10:44.349306 2026] [core:alert] [pid 1346957:tid 127027923211968] [remote 5.186.54.***:30858] /home/mysite/public_html/.htaccess: ExpiresByType takes two arguments, a MIME type followed by an expiry date code
[Thu Jan 29 19:10:46.860051 2026] [core:alert] [pid 1346957:tid 127027948439232] [remote 5.186.54.***:30858] /home/mysite/public_html/.htaccess: ExpiresByType takes two arguments, a MIME type followed by an expiry date code
[Thu Jan 29 19:10:47.310834 2026] [core:alert] [pid 1346957:tid 127028124866240] [remote 5.186.54.***:30858] /home/mysite/public_html/.htaccess: ExpiresByType takes two arguments, a MIME type followed by an expiry date code
[Thu Jan 29 19:10:47.514840 2026] [core:alert] [pid 1346957:tid 127027931621056] [remote 5.186.54.***:30858] /home/mysite/public_html/.htaccess: ExpiresByType takes two arguments, a MIME type followed by an expiry date code
[Thu Jan 29 19:10:47.639367 2026] [core:alert] [pid 1346957:tid 127028116473536] [remote 5.186.54.***:30858] /home/mysite/public_html/.htaccess: ExpiresByType takes two arguments, a MIME type followed by an expiry date code
[Thu Jan 29 19:10:47.848912 2026] [core:alert] [pid 1346957:tid 127028108080832] [remote 5.186.54.***:30858] /home/mysite/public_html/.htaccess: ExpiresByType takes two arguments, a MIME type followed by an expiry date code
[Thu Jan 29 19:10:48.122628 2026] [core:alert] [pid 1346957:tid 127028099688128] [remote 5.186.54.***:30858] /home/mysite/public_html/.htaccess: ExpiresByType takes two arguments, a MIME type followed by an expiry date code
[Thu Jan 29 19:10:48.233608 2026] [core:alert] [pid 1346957:tid 127028091295424] [remote 5.186.54.***:30858] /home/mysite/public_html/.htaccess: ExpiresByType takes two arguments, a MIME type followed by an expiry date code
[Thu Jan 29 19:10:48.417968 2026] [core:alert] [pid 1346957:tid 127028082902720] [remote 5.186.54.***:30858] /home/mysite/public_html/.htaccess: ExpiresByType takes two arguments, a MIME type followed by an expiry date code
[Thu Jan 29 19:10:48.550996 2026] [core:alert] [pid 1346957:tid 127028074510016] [remote 5.186.54.***:30858] /home/mysite/public_html/.htaccess: ExpiresByType takes two arguments, a MIME type followed by an expiry date code
[Thu Jan 29 19:10:48.786529 2026] [core:alert] [pid 1346957:tid 127028066117312] [remote 5.186.54.***:30858] /home/mysite/public_html/.htaccess: ExpiresByType takes two arguments, a MIME type followed by an expiry date code
[Thu Jan 29 19:10:48.961401 2026] [core:alert] [pid 1346957:tid 127028057724608] [remote 5.186.54.***:30858] /home/mysite/public_html/.htaccess: ExpiresByType takes two arguments, a MIME type followed by an expiry date code
[Thu Jan 29 19:10:49.086993 2026] [core:alert] [pid 1346957:tid 127028049331904] [remote 5.186.54.***:30858] /home/mysite/public_html/.htaccess: ExpiresByType takes two arguments, a MIME type followed by an expiry date code
[Thu Jan 29 19:10:49.236510 2026] [core:alert] [pid 1346957:tid 127028040939200] [remote 5.186.54.***:30858] /home/mysite/public_html/.htaccess: ExpiresByType takes two arguments, a MIME type followed by an expiry date code
[Thu Jan 29 19:10:49.378923 2026] [core:alert] [pid 1346957:tid 127028024121024] [remote 5.186.54.***:30858] /home/mysite/public_html/.htaccess: ExpiresByType takes two arguments, a MIME type followed by an expiry date code
[Thu Jan 29 19:10:49.488682 2026] [core:alert] [pid 1346957:tid 127028015711936] [remote 5.186.54.***:30858] /home/mysite/public_html/.htaccess: ExpiresByType takes two arguments, a MIME type followed by an expiry date code
[Thu Jan 29 19:10:49.592591 2026] [core:alert] [pid 1346957:tid 127028032530112] [remote 5.186.54.***:30858] /home/mysite/public_html/.htaccess: ExpiresByType takes two arguments, a MIME type followed by an expiry date code
[Thu Jan 29 19:10:49.711399 2026] [core:alert] [pid 1346957:tid 127027998893760] [remote 5.186.54.***:30858] /home/mysite/public_html/.htaccess: ExpiresByType takes two arguments, a MIME type followed by an expiry date code
[Thu Jan 29 19:10:49.850037 2026] [core:alert] [pid 1346957:tid 127027990484672] [remote 5.186.54.***:30858] /home/mysite/public_html/.htaccess: ExpiresByType takes two arguments, a MIME type followed by an expiry date code
[Thu Jan 29 19:10:49.977233 2026] [core:alert] [pid 1346957:tid 127027982075584] [remote 5.186.54.***:30858] /home/mysite/public_html/.htaccess: ExpiresByType takes two arguments, a MIME type followed by an expiry date codePara corregir los errores de PHP 500, necesito eliminar esto de mi .htaccess
Cuando se elimina el código, mi .htaccess vuelve a funcionar.
# Expires headers (for better cache control)
ExpiresActive on
ExpiresDefault "access plus 1 month"
# cache.appcache needs re-requests in FF 3.6 (thanks Remy ~Introducing HTML5)
ExpiresByType text/cache-manifest "access plus 0 seconds"
# Your document html
ExpiresByType text/html "access plus 0 seconds"
# Data
ExpiresByType text/xml "access plus 0 seconds"
ExpiresByType application/xml "access plus 0 seconds"
ExpiresByType application/json "access plus 0 seconds"
# Feed
ExpiresByType application/rss+xml "access plus 1 hour"
ExpiresByType application/atom+xml "access plus 1 hour"
# Favicon (cannot be renamed)
ExpiresByType image/x-icon "access plus 1 week"
# Media: images, video, audio
ExpiresByType image/gif "access plus 4 months"
ExpiresByType image/png "access plus 4 months"
ExpiresByType image/jpeg "access plus 4 months"
ExpiresByType image/webp "access plus 4 months"
ExpiresByType video/ogg "access plus 4 months"
ExpiresByType audio/ogg "access plus 4 months"
ExpiresByType video/mp4 "access plus 4 months"
ExpiresByType video/webm "access plus 4 months"
ExpiresByType image/avif "access plus 4 months"
ExpiresByType image/avif-sequence "access plus 4 months"
# HTC files (css3pie)
ExpiresByType text/x-component "access plus 1 month"
# Webfonts
ExpiresByType font/ttf "access plus 4 months"
ExpiresByType font/otfMi archivo .htaccess completo
# BEGIN Really Simple Auto Prepend File
php_value auto_prepend_file /home/mysite/public_html/wp-content/advanced-headers.php
php_value auto_prepend_file /home/mysite/public_html/wp-content/advanced-headers.php
Require all denied
Order deny,allow
Deny from all
# END Really Simple Auto Prepend File
# BEGIN Really Simple Security Redirect
RewriteEngine on
RewriteCond %{HTTPS} !=on [NC]
RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/
RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]
# END Really Simple Security Redirect
# BEGIN Imagify: webp file type
AddType image/webp .webp
# END Imagify: webp file type
# BEGIN Imagify: avif file type
AddType image/avif .avif
# END Imagify: avif file type
# BEGIN WP Rocket
# Use UTF-8 encoding for anything served text/plain or text/html
AddDefaultCharset UTF-8
# Force UTF-8 for a number of file formats
AddCharset UTF-8 .atom .css .js .json .rss .vtt .xml
# FileETag None is not enough for every server.
Header unset ETag
# Since we’re sending far-future expires, we don’t need ETags for static content.
# developer.yahoo.com/performance/rules.html#etags
FileETag None
Header set X-Powered-By "WP Rocket/3.20.3"
Header unset Pragma
Header append Cache-Control "public"
Header unset Last-Modified
Header unset Pragma
Header append Cache-Control "public"
AddType image/avif avif
AddType image/avif-sequence avifs
# Expires headers (for better cache control)
ExpiresActive on
ExpiresDefault "access plus 1 month"
# cache.appcache needs re-requests in FF 3.6 (thanks Remy ~Introducing HTML5)
ExpiresByType text/cache-manifest "access plus 0 seconds"
# Your document html
ExpiresByType text/html "access plus 0 seconds"
# Data
ExpiresByType text/xml "access plus 0 seconds"
ExpiresByType application/xml "access plus 0 seconds"
ExpiresByType application/json "access plus 0 seconds"
# Feed
ExpiresByType application/rss+xml "access plus 1 hour"
ExpiresByType application/atom+xml "access plus 1 hour"
# Favicon (cannot be renamed)
ExpiresByType image/x-icon "access plus 1 week"
# Media: images, video, audio
ExpiresByType image/gif "access plus 4 months"
ExpiresByType image/png "access plus 4 months"
ExpiresByType image/jpeg "access plus 4 months"
ExpiresByType image/webp "access plus 4 months"
ExpiresByType video/ogg "access plus 4 months"
ExpiresByType audio/ogg "access plus 4 months"
ExpiresByType video/mp4 "access plus 4 months"
ExpiresByType video/webm "access plus 4 months"
ExpiresByType image/avif "access plus 4 months"
ExpiresByType image/avif-sequence "access plus 4 months"
# HTC files (css3pie)
ExpiresByType text/x-component "access plus 1 month"
# Webfonts
ExpiresByType font/ttf "access plus 4 months"
ExpiresByType font/otf
# BEGIN Really Simple Security Disable directory indexing
# Direktiverne (linjer) mellem 'BEGIN Really Simple Security Disable directory indexing' og 'END Really Simple Security Disable directory indexing' er
# dynamisk genereret og bør kun ændres via WordPress-filtre.
# Eventuelle ændringer i direktiverne mellem disse markører vil blive overskrevet.
# Disable directory indexing to prevent listing of directory contents
Options -Indexes
# END Really Simple Security Disable directory indexing
Espero que alguien pueda ayudarme a solucionar este error.
Saludos
tomás
La página con la que necesito ayuda: [log in to see the link]