technet:dokuwikihttpsredirect
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| technet:dokuwikihttpsredirect [2023/06/14 10:25] – created fk | technet:dokuwikihttpsredirect [2023/06/14 10:26] (current) – fk | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Dokuwiki redirect to https ====== | ||
| + | |||
| + | |||
| If redirect from http to https is need and there is no success via .htaccess then PHP can help us: | If redirect from http to https is need and there is no success via .htaccess then PHP can help us: | ||
| ' | ' | ||
| + | |||
| + | <code php [enable_line_numbers=" | ||
| if ($_SERVER[' | if ($_SERVER[' | ||
| Line 9: | Line 14: | ||
| exit; | exit; | ||
| } | } | ||
| + | |||
| + | </ | ||
| Inspired by https:// | Inspired by https:// | ||
technet/dokuwikihttpsredirect.1686731111.txt.gz · Last modified: by fk
