Browse Source

Updates for server migration

master
Lukas Bestle 4 months ago
parent
commit
8148b00454
Signed by: lukas <mail@lukasbestle.com> GPG Key ID: 692037D104550FC9
2 changed files with 4 additions and 4 deletions
  1. +3
    -3
      .htaccess
  2. +1
    -1
      site/plugins/qdated.php

+ 3
- 3
.htaccess View File

@@ -13,9 +13,9 @@
#
RewriteBase /
# enforce HTTPS
RewriteCond %{ENV:HTTPS} !=on
RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]
# rewrite codesigned.de alternative domain
RewriteCond %{SERVER_NAME} codesigned.de
RewriteRule .* https://codesignd.de%{REQUEST_URI} [R=301,L]
# rewrite /favicon.ico
RewriteRule ^favicon.ico$ assets/img/favicon.ico [L]


+ 1
- 1
site/plugins/qdated.php View File

@@ -7,7 +7,7 @@
* @return string
*/
function qdated() {
$path = $_SERVER['HOME'] . DS . '.qdated-current';
$path = $_SERVER['HOME'] . '/.config/qdated/cddmail2/current';
if(!is_file($path)) return null;
return 'dated-' . trim(f::read($path)) . '@' . url::host();


Loading…
Cancel
Save