title: Laravel 5.5 Not Routing On Live Server
body: <p>I have a live server.With apache installed. For some reason it doesn't accept my routes. The main laravel page shows but when you use a root I get: </p>
  
  <p>Not Found</p>
  
  <p>The requested URL /sayit was not found on this server.
  Apache/2.4.18 (Ubuntu) Server at aragonserv.co.za Port 443</p>
  
  <p>When I say "<a href="https://example.com/sayit" rel="nofollow noreferrer">https://example.com/sayit</a>"</p>
  
  <p>Please find below the files I have on figured</p>
  
  <p>File: /etc/apache2/sites-available/ example.conf</p>
  
  <pre><code>&lt;VirtualHost *:80&gt;
          ServerAdmin admin@example.com
          ServerName example.com
          ServerAlias www.example.com
          DocumentRoot /var/www/example.com/public
          &lt;Directory /var/www/example.com/public&gt;
            Options Indexes FollowSymLinks MultiViews
              AllowOverride all
              Order allow,deny
              Allow from all
          &lt;/Directory&gt;
          ErrorLog ${APACHE_LOG_DIR}/error.log
          CustomLog ${APACHE_LOG_DIR}/access.log combined
  
          # For most configuration files from conf-available/, which are
          # enabled or disabled at a global level, it is possible to
          # include a line for only one particular virtual host. For example the
          # following line enables the CGI configuration for this host only
          # after it has been globally disabled with "a2disconf".
          #Include conf-available/serve-cgi-bin.conf
  
          RewriteEngine on
          RewriteCond %{SERVER_NAME} =www.example.com [OR]
          RewriteCond %{SERVER_NAME} =example.com
          RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>File: /var/www/example.com/public/.htaccess</p>
  
  <pre><code>&lt;IfModule mod_rewrite.c&gt;
      &lt;IfModule mod_negotiation.c&gt;
          Options -MultiViews -Indexes
      &lt;/IfModule&gt;
  
      RewriteEngine On
  
      # Handle Authorization Header
      RewriteCond %{HTTP:Authorization} .
      RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
  
      # Redirect Trailing Slashes If Not A Folder...
      RewriteCond %{REQUEST_FILENAME} !-d
      RewriteCond %{REQUEST_URI} (.+)/$
      RewriteRule ^ %1 [L,R=301]
  
      # Handle Front Controller...
      RewriteCond %{REQUEST_FILENAME} !-d
      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteRule ^ index.php [L]
  &lt;/IfModule&gt;
  </code></pre>
  
  <p>My Routes web.php</p>
  
  <pre><code>&lt;?php
  
  /*
  |--------------------------------------------------------------------------
  | Web Routes
  |--------------------------------------------------------------------------
  |
  | Here is where you can register web routes for your application. These
  | routes are loaded by the RouteServiceProvider within a group which
  | contains the "web" middleware group. Now create something great!
  |
  */
  
  Route::get('/', function () {
      return view('welcome');
  });
  
  Route::get('/sayit', 'TestController@sayHello');
  </code></pre>
  
  <p>My Controller</p>
  
  <pre><code>&lt;?php
  
  namespace App\Http\Controllers;
  
  use Illuminate\Http\Request;
  
  class TestController extends Controller
  {
          //TEST METHOD
          public function sayHello(){
                  return echo "Hello";
          }
  }
  </code></pre>