title: Laravel 8 URI in request GET is not valid
body: <p>I am working on a new project using Laravel 8. I only have 2 routes at the moment. My first on &quot;/&quot; works but my second &quot;/pricelist&quot; returns a 404 and I have been trying everything for the past 2 hours to get it working to no avail. Any help would be appreciated at this point.</p>
  <p>wep.php</p>
  <pre><code>&lt;?php
  
  use Illuminate\Support\Facades\Route;
  use App\Http\Controllers\priceListController;
  use App\Http\Controllers\dashboardController;
  
  Route::get('/', [dashboardController::class, 'index'])-&gt;name('index');
  Route::get('/pricelist', [priceListController::class, 'index'])-&gt;name('pricelist');
  </code></pre>
  <ul>
  <li><a href="http://x.x.x.x/operations/phpl/" rel="nofollow noreferrer">http://x.x.x.x/operations/phpl/</a> Works and shows the dashboard</li>
  <li><a href="http://x.x.x.x/operations/phpl/pricelist" rel="nofollow noreferrer">http://x.x.x.x/operations/phpl/pricelist</a> Gives a 404</li>
  </ul>
  <p>Log says:</p>
  <blockquote>
  <p>ZSRV_MSG0016: URI in request GET /operations/phpl/pricelist HTTP/1.1
  is not valid</p>
  </blockquote>
  <p><a href="https://i.stack.imgur.com/harku.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/harku.png" alt="enter image description here" /></a></p>
  <p>My httpd.conf file looks like this:</p>
  <pre><code>&lt;VirtualHost /home/operations/phpl:80&gt;
      DocumentRoot /home/operations/phpl/public
  
      &lt;Directory /home/operations/phpl&gt;
              Options Indexes FollowSymLinks MultiViews
              AllowOverride All
              Order allow,deny
              allow from all
              Require all granted
      &lt;/Directory&gt;
  &lt;/VirtualHost&gt;
  </code></pre>
  <p>My .htaccess in /public looks like this</p>
  <pre><code>&lt;IfModule mod_rewrite.c&gt;
      &lt;IfModule mod_negotiation.c&gt;
      Options -MultiViews
  &lt;/IfModule&gt;
  Options +FollowSymlinks
  RewriteEngine On
  
  # Redirect Trailing Slashes...
  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>I tried doing a dump-autoload and also a route:clear but it did not help.</p>
  <p>I might be missing something obvious here but I just don't see it ...</p>
  <p>The routes seems to be valid caus it appears in the route list. So I think this is a server issue ... Might come from httpd.conf?</p>
  <p>$ php artisan route:list</p>
  <pre><code>+--------+----------+-----------+-----------+------------------------------------------------+------------+
  | Domain | Method   | URI       | Name      | Action                                         | Middleware |
  +--------+----------+-----------+-----------+------------------------------------------------+------------+
  |        | GET|HEAD | /         | index     | App\Http\Controllers\dashboardController@index | web        |
  |        | GET|HEAD | api/user  |           | Closure                                        | api        |
  |        |          |           |           |                                                | auth:api   |
  |        | GET|HEAD | pricelist | pricelist | App\Http\Controllers\priceListController@index | web        |
  +--------+----------+-----------+-----------+------------------------------------------------+------------+
  </code></pre>
  <p>My full httpd.conf looks like this</p>
  <pre><code>LoadModule zend_enabler_module /QSYS.LIB/QHTTPSVR.LIB/QZFAST.SRVPGM
  
  LoadModule ibm_ssl_module /QSYS.LIB/QHTTPSVR.LIB/QZSRVSSL.SRVPGM
  LogFormat &quot;%h %l %u %t \&quot;%r\&quot; %&gt;s %b&quot; common
  LiveLocalCache Off
  SSLCacheEnable
  &lt;Location /&gt;
  &lt;LimitExcept GET HEAD OPTIONS POST TRACE&gt;
      Order Allow,Deny
      Deny From all
  &lt;/LimitExcept&gt;
  &lt;/Location&gt;
  
  Options -ExecCGI -SymLinksIfOwnerMatch -Includes -IncludesNoExec -Indexes -MultiViews
  DefaultType www/unknown
  Options +Includes
  Listen *:80
  MaxKeepAliveRequests 5
  TimeOut 120
  KeepAliveTimeout 4
  LogMaint logs/error_log 10 0
  LogLevel Debug
  AccessFileName .htaccess
  DirectoryIndex welcome.html index.html index.php
  CGIConvMode %%EBCDIC/EBCDIC%%
  IndexOptions +DescriptionWidth=60 -FancyIndexing -FoldersFirst -IconHeight -IconsAreLinks -IconWidth -IgnoreCase -IgnoreClient +NameWidth=60 +NameMinWidth=15 -ScanHTMLTitles -SelectiveDirAccess -ShowSmallFileBytes -ShowOwner -SuppressColumnSorting -SuppressDescription -SuppressHTMLPreamble -SuppressIcon -SuppressLastModified -SuppressRules -SuppressSize -TrackModified -VersionSort
  HeaderName README
  &lt;Directory /&gt;
  Order Allow,Deny
  Deny From all
  UserID %%SERVER%%
  &lt;/Directory&gt;
  
  AddType application/x-httpd-php .php
  AddHandler fastcgi-script .php
  
  &lt;Location /operations/php&gt;
  Allow from all
  &lt;/Location&gt;
  
  &lt;Directory &quot;/home/operations/php&quot;&gt;
  Allow from all
  &lt;/Directory&gt;
  
  &lt;VirtualHost /home/operations/phpl:80&gt;
      DocumentRoot /home/operations/phpl/public
      AccessFileName .htaccess
  
      &lt;Directory /home/operations/phpl&gt;
              Options Indexes FollowSymLinks MultiViews
              AllowOverride All
              Order allow,deny
              allow from all
              Require all granted
      &lt;/Directory&gt;
  &lt;/VirtualHost&gt;
  </code></pre>