• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.5 htaccess errors

viper357

Active member
#1
Hi guys, I know very little about htaccess but have noticed I am getting these errors a lot, could someone please give me some advice if my htaccess file is incorrect please? Thank you.

Errors:

2016-10-10 14:00:33.162 [NOTICE] [/home/marineaq/public_html/.htaccess:23] Unsupported ErrorDocument URL: default, must start with '/' or 'http'.
2016-10-10 14:00:33.162 [NOTICE] [/home/marineaq/public_html/.htaccess:22] Unsupported ErrorDocument URL: default, must start with '/' or 'http'.
2016-10-10 14:00:33.162 [NOTICE] [/home/marineaq/public_html/.htaccess:21] Unsupported ErrorDocument URL: default, must start with '/' or 'http'.
2016-10-10 14:00:33.162 [NOTICE] [/home/marineaq/public_html/.htaccess:20] Unsupported ErrorDocument URL: default, must start with '/' or 'http'.
2016-10-10 14:00:33.162 [NOTICE] [/home/marineaq/public_html/.htaccess:19] Unsupported ErrorDocument URL: default, must start with '/' or 'http'.
2016-10-10 14:00:33.162 [NOTICE] [/home/marineaq/public_html/.htaccess:18] Unsupported ErrorDocument URL: default, must start with '/' or 'http'.
2016-10-10 14:00:33.162 [NOTICE] [/home/marineaq/public_html/.htaccess:17] Unsupported ErrorDocument URL: default, must start with '/' or 'http'.
2016-10-10 14:00:33.162 [NOTICE] [/home/marineaq/public_html/.htaccess:16] Unsupported ErrorDocument URL: default, must start with '/' or 'http'.

My htaccess file:

RewriteEngine On

RewriteRule ^[^/]+/([0-9]+)-[^\./]+\.html$ /threads/$1/ [R=301,L]

# Rewrite all requests to the 'www' version
RewriteCond %{HTTP_HOST} ^marineaquariumsa\.com$ [NC]
RewriteRule ^.*$ http://www.marineaquariumsa.com%{REQUEST_URI} [R=301,L]

# Mod_security can interfere with uploading of content such as attachments. If you
# cannot attach files, remove the "#" from the lines below.
#<IfModule mod_security.c>
#SecFilterEngine Off
#SecFilterScanPOST Off
#</IfModule>

ErrorDocument 401 default
ErrorDocument 403 default
ErrorDocument 404 default
ErrorDocument 405 default
ErrorDocument 406 default
ErrorDocument 500 default
ErrorDocument 501 default
ErrorDocument 503 default

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^(data/|js/|styles/|install/|favicon\.ico|crossdomain\.xml|robots\.txt) - [NC,L]
RewriteRule ^.*$ index.php [NC,L]
</IfModule>

## EXPIRES CACHING ##
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg "access plus 1 year"
ExpiresByType image/jpeg "access plus 1 year"
ExpiresByType image/gif "access plus 1 year"
ExpiresByType image/png "access plus 1 year"
ExpiresByType text/css "access plus 1 month"
ExpiresByType application/pdf "access plus 1 month"
ExpiresByType text/x-javascript "access plus 1 month"
ExpiresByType application/x-shockwave-flash "access plus 1 month"
ExpiresByType image/x-icon "access plus 1 year"
ExpiresDefault "access plus 2 days"
</IfModule>
## EXPIRES CACHING ##