Skip to content
Snippets Groups Projects
Commit 1bab3747 authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

update docs

parent cf743ecd
No related branches found
No related tags found
No related merge requests found
...@@ -5,3 +5,4 @@ ...@@ -5,3 +5,4 @@
* aliases can be defined to handle same redirects * aliases can be defined to handle same redirects
* optional debugging (will be written into http reponse header) * optional debugging (will be written into http reponse header)
* admin to list and filter all existing domains and redirects * admin to list and filter all existing domains and redirects
* debug processing
...@@ -26,7 +26,7 @@ to the public_html directory. The config folder is outside the webroot. ...@@ -26,7 +26,7 @@ to the public_html directory. The config folder is outside the webroot.
## Redirect all requests to index.php ## ## Redirect all requests to index.php ##
Redirect all requests to the index.php. Activate the .htaccess or (better) Redirect all requests to the index.php. Activate the .htaccess or (better)
add the config of the htaccess file to the vhost config. add the config to the vhost config.
```text ```text
RewriteEngine On RewriteEngine On
......
...@@ -3,8 +3,16 @@ ...@@ -3,8 +3,16 @@
In the *./config/* folder are json files. Copy the dist files to the same filename without ".dist" In the *./config/* folder are json files. Copy the dist files to the same filename without ".dist"
* redirects_[FQDN].json * redirects_[FQDN].json -
* aliases.json * aliases.json -
You can create multipe redirect files `redirects_[FQDN].json`. We suggest to use the main domain as FQDN.
If you have multiple domains that should use exactly the same redirects then use the `aliases.json`.
Other requirements:
* In the DNS you must point each domain to the redirect website.
* In the apache web with multiple vhosts: add the need a server alias to process the hostname in the wanted vhost
## Redirects ## ## Redirects ##
......
...@@ -5,6 +5,6 @@ Redirect urls of any domain that points here. ...@@ -5,6 +5,6 @@ Redirect urls of any domain that points here.
Author: Axel Hahn; Institute for Medical Education; University of Bern Author: Axel Hahn; Institute for Medical Education; University of Bern
License: GNUP GPL 3.0 📄 Source: <https://git-repo.iml.unibe.ch/iml-open-source/redirect-handler> \
📜 License: GNU GPL 3.0 \
See the [docs](./docs) 📖 Docs: <https://os-docs.iml.unibe.ch/redirect-handler/> or see the [docs](./docs)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment