HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/SBogers10/tandartsmaas.komma.pro/app/routes.php
<?php

//Route::get('/{any?}', ['uses' => 'PageController@page']);

if( \Str::startsWith(\Request::getHttpHost(), 'www'))
{
    $url = substr(\Request::getHttpHost(),4);
    $path = \Request::path();
    if( ! empty($path) && $path != '/') $url .= '/' . $path;

    header ('HTTP/1.1 301 Moved Permanently');
    header('location: http://' . $url );
    exit;
}

// Temporary route to emails
Route::get('/emails/email', function()
{
    return View::make('emails.excuise.email');
});