title: Why after migrate a Laravel application on my remote server this route doesn't work?
body: <p>this is the first time that I try to migrate a Laravel application from my local environment to my remote server.</p>
  
  <p>So basically I have uploaded the entire content of my local Laravel 5.4 application into this folder of my remote server:</p>
  
  <pre><code>/var/www/html/HotelRegistration
  </code></pre>
  
  <p>Then I am trying to opening this URL into the browser (my remote server):</p>
  
  <pre><code>http://89.36.211.48/HotelRegistration/public/
  </code></pre>
  
  <p>and how you can see the standard Laravel homepage appear (it is expected, I yet have to replace this page with a custom one).</p>
  
  <p>The problem is that in my <strong>web.xml</strong> file I have declared these routes:</p>
  
  <pre><code>Route::get('/', function () {
      return view('welcome');
  });
  
  Route::get('contact', function() {
      return View::make('contact');
  });
  
  Route::post('contact', 'EnquiryController@index');
  
  
  Route::resource('/registration', 'RegistrationController');
  </code></pre>
  
  <p>The first one is the one related to the standard Laravel page that works fine, the last one is:</p>
  
  <pre><code>Route::resource('/registration', 'RegistrationController');
  </code></pre>
  
  <p>and it should handle HTTP GET request toward the <strong>/registration</strong> by the <strong>RegistrationController</strong> class, this controller class contains this <strong>index()</strong> method:</p>
  
  <pre><code>/**
   * Metodo che mostra la pagina di registrazione di un nuovo utente albergatore.
   * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View
   */
  public function index(){
      Log::info('index() START');
  
      return view('/registration/index');
  
  }
  </code></pre>
  
  <p>that opening this URL:</p>
  
  <pre><code>http://89.36.211.48/HotelRegistration/public/registration
  </code></pre>
  
  <p>should show a registration page. But, as you can see opening it I obtain a <strong>Not Found</strong> error message.</p>
  
  <p>Into the <strong>/var/www/html/HotelRegistration/storage/logs/laravel.log</strong> file there is nothing, I expected the output of the log putted at the beginning of the previous method controller, so it seems that it doesn't not enter in this method.</p>
  
  <p>The strange thing is that opening the same URL on my localhost system (<a href="http://localhost/HotelRegistration/public/registration" rel="nofollow noreferrer">http://localhost/HotelRegistration/public/registration</a>) it works fine.</p>
  
  <p>I am thinking that maybe it could be a <strong>routes</strong> problem (maybe some route is missing), if I perform this statment on my <strong>local environment</strong>:</p>
  
  <pre><code>php artisan route:list
  </code></pre>
  
  <p>I obtain:</p>
  
  <pre><code>+--------+-----------+----------------------------------+----------------------+------------------------------------------------------+--------------+
  | Domain | Method    | URI                              | Name                 | Action                                               | Middleware   |
  +--------+-----------+----------------------------------+----------------------+------------------------------------------------------+--------------+
  |        | GET|HEAD  | /                                |                      | Closure                                              | web          |
  |        | GET|HEAD  | activate                         |                      | App\Http\Controllers\RegistrationController@activate | web          |
  |        | GET|HEAD  | api/user                         |                      | Closure                                              | api,auth:api |
  |        | GET|HEAD  | contact                          |                      | Closure                                              | web          |
  |        | POST      | contact                          |                      | App\Http\Controllers\EnquiryController@index         | web          |
  |        | GET|HEAD  | errors                           | errors               | Closure                                              | web          |
  |        | POST      | registration                     | registration.store   | App\Http\Controllers\RegistrationController@store    | web          |
  |        | GET|HEAD  | registration                     | registration.index   | App\Http\Controllers\RegistrationController@index    | web          |
  |        | GET|HEAD  | registration/create              | registration.create  | App\Http\Controllers\RegistrationController@create   | web          |
  |        | DELETE    | registration/{registration}      | registration.destroy | App\Http\Controllers\RegistrationController@destroy  | web          |
  |        | PUT|PATCH | registration/{registration}      | registration.update  | App\Http\Controllers\RegistrationController@update   | web          |
  |        | GET|HEAD  | registration/{registration}      | registration.show    | App\Http\Controllers\RegistrationController@show     | web          |
  |        | GET|HEAD  | registration/{registration}/edit | registration.edit    | App\Http\Controllers\RegistrationController@edit     | web          |
  +--------+-----------+----------------------------------+----------------------+------------------------------------------------------+--------------+
  </code></pre>
  
  <p>that contains this route:</p>
  
  <pre><code>|        | GET|HEAD  | registration                     | registration.index   | App\Http\Controllers\RegistrationController@index    | web          |
  </code></pre>
  
  <p>that should be the route related to the previous <strong>index()</strong> method of my controller.</p>
  
  <p>But I can found it also performing the same statment on my <strong>remote environment</strong>:</p>
  
  <pre><code>root@Betrivius-VPS:/var/www/html/HotelRegistration# php artisan route:list
  +--------+-----------+----------------------------------+----------------------+------------------------------------------------------+--------------+
  | Domain | Method    | URI                              | Name                 | Action                                               | Middleware   |
  +--------+-----------+----------------------------------+----------------------+------------------------------------------------------+--------------+
  |        | GET|HEAD  | /                                |                      | Closure                                              | web          |
  |        | GET|HEAD  | activate                         |                      | App\Http\Controllers\RegistrationController@activate | web          |
  |        | GET|HEAD  | api/user                         |                      | Closure                                              | api,auth:api |
  |        | GET|HEAD  | contact                          |                      | Closure                                              | web          |
  |        | POST      | contact                          |                      | App\Http\Controllers\EnquiryController@index         | web          |
  |        | GET|HEAD  | errors                           | errors               | Closure                                              | web          |
  |        | GET|HEAD  | registration                     | registration.index   | App\Http\Controllers\RegistrationController@index    | web          |
  |        | POST      | registration                     | registration.store   | App\Http\Controllers\RegistrationController@store    | web          |
  |        | GET|HEAD  | registration/create              | registration.create  | App\Http\Controllers\RegistrationController@create   | web          |
  |        | GET|HEAD  | registration/{registration}      | registration.show    | App\Http\Controllers\RegistrationController@show     | web          |
  |        | PUT|PATCH | registration/{registration}      | registration.update  | App\Http\Controllers\RegistrationController@update   | web          |
  |        | DELETE    | registration/{registration}      | registration.destroy | App\Http\Controllers\RegistrationController@destroy  | web          |
  |        | GET|HEAD  | registration/{registration}/edit | registration.edit    | App\Http\Controllers\RegistrationController@edit     | web          |
  +--------+-----------+----------------------------------+----------------------+------------------------------------------------------+--------------+
  </code></pre>
  
  <p>So what could be the problem? Why on my remote environment this URL (<a href="http://89.36.211.48/HotelRegistration/public/registration" rel="nofollow noreferrer">http://89.36.211.48/HotelRegistration/public/registration</a>) seems not to be hanbdled as done in the local one?</p>
  
  <p>What could be the problem? What am I missing? How can I try to fix it?</p>