404 Error Pages

The base UF 2015 Template has a section called "404" which has some content that can be approved to create a styled 404 page. In order to make the web server show this styled 404 page when an actual 404 error occurs it is necessary to use the htaccess content type in the root of your site to create a .htaccess file that will configure the web server to properly show the 404 page.

To do this navigate to the root section of your website in TERMINALFOUR, for example webservices.it.ufl.edu and perform the following steps.

  1. Create a new piece of content with of the type htaccess.
  2. Inside of this piece of content paste the following line of text:
    ErrorDocument 404 /404/index.html
  3. Save and approve the content.

Note: This requires your web server to be running Apache. All Basic T4 Hosting accounts are running on Apache.

Note: If you have changed the location of the 404 section or have chosen to use a different file extension you will need to modify the /404/index.html portion of the code to match your path and file extension.

Note: This content type relies on TERMINALFOUR's publish process to create a file. Because of this you cannot preview the output of an htaccess piece of content. However the content of the file is exactly what is put into the text box of the content type.

Note: The htaccess content type is only visible to Power Users and above as this content type creates a .htaccess file which must be formatted correctly or it will cause your site to not function once published.