Supporting Clean URLs
If you want to give your blog prettier URLs, you can enable "Clean URLs" on the Route Settings page of the administration console. Chyrp Lite supports clean URLs on the Apache, Nginx, and Caddy web servers.
Enabling Clean URLs
Before enabling clean URLs, download a Zip archive containing the necessary rewrite files using the link on the Route Settings page of the administration console. Unzip the files and then install the relevant rewrite support for your web server before you enable clean URLs:
Apache Web Server
If you are using Apache, mod_rewrite and .htaccess capability is required for clean URLs. The configuration file named _htaccess contains the directives necessary to support clean URLs when Chyrp Lite is running on the Apache web server. Copy the file into your installation directory with the name .htaccess (replace underscore with period).
Nginx Web Server
The configuration snippet named include.conf contains the directives necessary to support clean URLs when Chyrp Lite is running on the Nginx web server. You must add this file to your Nginx configuration, inside the server
directive, either by copying and pasting the contents or by using the include
directive:
server {
#...
include filesystem/path/to/include.conf;
#...
}
Caddy 2 Web Server
The configuration snippet named caddyfile contains the directives necessary to support clean URLs when Chyrp Lite is running on the Caddy 2 web server. You must add this file to your Caddy configuration, either by copying and pasting the contents or by using the import
directive:
example.com {
#...
import filesystem/path/to/caddyfile
#...
}
Disabling Clean URLs
It is not necessary to delete the configuration snippets if you decide to disable clean URLs.