$this['http'] = "http"; if ( (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off') || $_SERVER['SERVER_PORT'] == 443){ $this['http'] = "https"; } $this['vollerpfad'] = $this['http'].'://'.$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI']; if(str_replace($this['domain'],'',$this['vollerpfad']) == $this['vollerpfad']): header ('HTTP/1.1 301 Moved Permanently'); header ('Location: '.str_replace("http://","https://",$this['vollerpfad'])); exit; endif; ?> Ostfriesland-Reise.de - Dein Reiseführer