Advanced Features

Password Protection

Site44 offers simple password protection for domains that end in ".site44.com." You may assign a single password to a domain, which will be required of anybody wishing to access any page in that domain. Passwords are created, modified, or deleted from the Admin page by clicking on the lock icon corresponding to a given domain.

Password protection is not available for custom domains.

Custom 404 (Page Not Found) Pages

Site44 enables you to specify the 404 page for any domain by putting the file "404.html" in the top-level folder for the given domain. (This file would be Dropbox/Apps/site44/<domain-name>/404.html.) Site44 will serve 404.html for any request to a non-existent page in that domain.

Custom MIME Type Control

Site44 provides you with control of the MIME types it serves along with your files. Like any web server, Site44 serves your content with appropriate MIME types (the "Content-Type" header) based on the file's extension. For example, a file ending in ".jpg" will be served with a MIME type of "image/jpeg".

If you would like to override Site44's MIME types, you can create a file called "mimetypes.site44.txt" in the top-level folder for your website. (This file would be Dropbox/Apps/site44/<domain-name>/mimetypes.site44.txt.) The file contains rules, one per line, of the form "pattern mimetype" (space-separated).

An example mimetypes.site44.txt follows:

*.log text/plain
/posts/* text/html
/images/**/* image/png

The first line matches any file that ends in ".log". The second line matches any file directly in the "posts" folder (e.g. "/posts/foo" and "/posts/bar", but not "/posts/subfolder/foo"). The third line matches anything in the "images" folder, no matter how deeply nested. (It matches "/images/foo" and "/images/subfolder/or/two/bar").

Each line causes Site44 to serve the file with a "Content-Type" header given by the second part of the line (e.g. "text/plain").

Redirects

Site44 provides a simple mechanism for issuing redirects. You might want to use this if, for example, you've moved a lot of content from one location to another, or if you've moved an entire website to a new domain. To create redirect rules, you can create a file called "redirects.site44.txt" in the top-level folder for your website. (This file would be Dropbox/Apps/site44/<domain-name/>/redirects.site44.txt.) The file contains rules, one per line, of the form "from to" (space-separated).

In the following example redirects.site44.txt, all URLs starting with "/articles" are redirected to "/blog/articles" instead. (E.g., "/articles/foo" is redirected to "/blog/articles/foo," on the same domain.)

/articles /blog/articles

In the next example, every URL is redirected to a different domain. (E.g., "/foo" is redirected to "http://www.example.com/foo".)

/ http://www.example.com

If the from part of the rule includes spaces, it must be enclosed in double quotes.

All redirects use an HTTP status code of 301 (moved permanently).