1

I have a very simple Controller for my static views.

Route::get('thisisatest', function()
{
    return View::make('pages.thisisatest');
});

I can access this view on domain.de/public/thisisatest

But i want to separate the url with a delimiter like domain.de/this-is-a-test.

How can i do this and how to remove the /public in my URL ?

Shankar Narayana Damodaran
  • 68,075
  • 43
  • 96
  • 126
bobbybackblech
  • 1,868
  • 5
  • 20
  • 22

1 Answers1

2

You can just type in what you want. In this case:

Route::get('this-is-a-test', function()

Please only ask one question per topic.

However, your question about /public is a duplicate and can be found here: Laravel 4 removing public from URL

Community
  • 1
  • 1
Patrick Reck
  • 11,246
  • 11
  • 53
  • 86