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/SBogers75/roost-interieurbouw.nl/app/routes.php
<?php

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the Closure to execute when that URI is requested.
|
*/

Route::get('/', 'Komma\Page\PageController@index');
Route::get('/disclaimer', 'Komma\Page\PageController@disclaimer');
Route::get('/algemene-voorwaarden', 'Komma\Page\PageController@av');
Route::get('/privacyverklaring', 'Komma\Page\PageController@privacy');


Route::post('/contact/process-new', 'Komma\Contact\ContactController@contactFormProcessNew');
Route::get('/contact/bedankt', [
    'as' => 'contact.success',
    'uses' => 'Komma\Contact\ContactController@contactFormSuccess'
]);


Route::get('/{a}/{b}/{c}', function($a, $b, $c){ //301 switch

    switch($c){
        case "home.html":
            return Redirect::to('/', 301);
            break;

        case "historie.html":
            return Redirect::to('/', 301);
            break;

        case "producten.html":
            return Redirect::to('/', 301);
            break;

        case "portfolio.html":
            return Redirect::to('/', 301);
            break;

        case "contact.html":
            return Redirect::to('/', 301);
            break;

        case "copyright.html":
            return Redirect::to('/disclaimer', 301);
            break;

        case "disclaimer.html":
            return Redirect::to('/disclaimer', 301);
            break;

        case "algemene_voorwaarden.html":
            return Redirect::to('/algemene-voorwaarden', 301);
            break;

        default:
            App::abort(404);
            break;
    }


});