rocky3k
Forum Replies Created
-
Thanks for the trick Anton!
I applied the symbols after the mod_expires and not no 500 error. I found out that my apache2.conf file was not configured to account for .htaccess,
I updated the directory entry in the apache2.conf file to;
<Directory /> Options FollowSymLinks AllowOverride All Require all granted </Directory> <Directory /usr/share> AllowOverride All Require all granted </Directory> <Directory /var/www/> Options Indexes FollowSymLinks AllowOverride All Require all granted </Directory>and now it works!
Thank you so much for the help!
Hey Anton!
Thanks for the replay, unfortunately I am not sure what you mean by ” Could you try to add any symbols right after <IfModule mod_expires.c>” could you please elaborate further?
I have gone ahead and replaced the code with the one you have suggested and still getting the same error.
my .htaccess looks like this now:
# BEGIN WP-HUMMINGBIRD-CACHING
<IfModule mod_expires.c>
FileETag MTime Size
ExpiresActive On
ExpiresDefault “access plus 1 seconds”
ExpiresByType text/html “access plus 8 days”
ExpiresByType application/xhtml+xml “access plus 8 days”
ExpiresByType text/css “access plus 8 days”
ExpiresByType text/javascript “access plus 8 days ”
ExpiresByType application/javascript “access plus 8 days”
ExpiresByType application/x-javascript “access plus 8 days”
ExpiresByType image/x-icon “access plus 8 days”
ExpiresByType image/jpeg “access plus 8 days”
ExpiresByType image/png “access plus 8 days”
ExpiresByType image/gif “access plus 8 days”
</IfModule>
# END WP-HUMMINGBIRD-CACHING
# 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 WordPressAlso these are all the modules I have enabled
ubuntu@ip-172-31-4-212:/var/www/html$ apachectl -M
AH00548: NameVirtualHost has no effect and will be removed in the next release /etc/apache2/ports.conf:8
Loaded Modules:
core_module (static)
so_module (static)
watchdog_module (static)
http_module (static)
log_config_module (static)
logio_module (static)
version_module (static)
unixd_module (static)
access_compat_module (shared)
alias_module (shared)
auth_basic_module (shared)
authn_core_module (shared)
authn_file_module (shared)
authz_core_module (shared)
authz_host_module (shared)
authz_user_module (shared)
autoindex_module (shared)
deflate_module (shared)
dir_module (shared)
env_module (shared)
expires_module (shared)
filter_module (shared)
mime_module (shared)
mpm_prefork_module (shared)
negotiation_module (shared)
php7_module (shared)
rewrite_module (shared)
setenvif_module (shared)
socache_shmcb_module (shared)
ssl_module (shared)
status_module (shared)