Table of Contents
Installation
Get the files
The repository contains a subfolder public_html. Run git clone
or extract the downloaded archive 1 level above webroot. The document root of the web must point
to the public_html directory. The config folder is outside the webroot.
.
βββ config
βΒ Β βββ aliases.json.dist
βΒ Β βββ redirects_domain.example.com.json.dist
βββ docs
βΒ Β βββ ...
| βββ ...
βββ public_html
βΒ Β βββ admin.php
βΒ Β βββ classes
βΒ Β βΒ Β βββ redirect.admin.class.php
βΒ Β βΒ Β βββ redirect.admin.class.php_enabled.txt.dist
βΒ Β βΒ Β βββ redirect.class.php
βΒ Β βββ index.php
βββ readme.md
Redirect all requests to index.php
Redirect all requests to the index.php. Activate the .htaccess or (better) add the config to the vhost config.
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^.*$ /index.php [L]
In the DNS point all hostnames with redirects only to this server (i.e. with a CNAME).
If you donβt have a single vhost in the webserver then additionally add the domains to βcatchβ as ServerAlias.