1. 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

Discussion in 'Troubleshooting and Problems' started by viper357, Oct 10, 2016.

  1. viper357

    viper357 Active Member

    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 ##
     
  2. Jeremy

    Jeremy XenForo Moderator Staff Member

    If you do not want to customize your ErrorDocuments, remove those lines.
     
    viper357 likes this.
  3. Robru

    Robru Active Member

    viper357 likes this.
  4. viper357

    viper357 Active Member

    Thank you guys.:)
     

Share This Page