From b0e8915786e0cc50c0b6e130e0c92d62505dd0bc Mon Sep 17 00:00:00 2001 From: dl6nm Date: Sat, 13 Jun 2020 22:50:24 +0200 Subject: [PATCH] Added documentation how to get rid of `index.php` in an URL --- Cloudlog.php-Configuration-File.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Cloudlog.php-Configuration-File.md b/Cloudlog.php-Configuration-File.md index 92f8387..5b45489 100644 --- a/Cloudlog.php-Configuration-File.md +++ b/Cloudlog.php-Configuration-File.md @@ -8,4 +8,13 @@ The configuration file `application/config/cloudlog.php` is used for setting any * `$config['show_time']` - This controls whether users who are not logged in can see QSO times, the default is set to false. * `$config['measurement_base']` - This allows you to set unit of measurement used for showing bearings, the default is `M` which is miles, however, you can set `K` for kilometres and `N` for nautic miles. * `$config['qso_date_format']` - changing this allows you to change the date format displayed this uses the php date() format, see notes in the file for details. -* `$config['qso_auto_qth']` - Setting this to TRUE allows the QTH locator to be pre-filled based on the person's location when creating new QSO. OSM's Nominatim API is being used for that purpose \ No newline at end of file +* `$config['qso_auto_qth']` - Setting this to TRUE allows the QTH locator to be pre-filled based on the person's location when creating new QSO. OSM's Nominatim API is being used for that purpose + +## Remove `index.php` from your URL +To get rid of the `index.php` in your URL (using Apache with mod_rewrite) you have to rename the example file `.htaccess.sample` to `.htaccess` in the root directory of your server. +You also have to change one line in the configuration file `application/config/cloudlog.php` to `$config['index_page'] = '';` + +| URL | Config | Example URL | +|-----|--------|----------| +| default | `$config['index_page'] = 'index.php';` | [https://cloudlog.example.com/index.php/logbook](#) | +| mod_rewrite | `$config['index_page'] = '';` | [https://cloudlog.example.com/logbook](#) | \ No newline at end of file