Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

zimab's avatar
Level 1

View not found

I just upload my project on hosting. I have a problem with views. My welcome side open and everything is displayed ok. When I try open another views I get error: Not Found

The requested URL /symulator was not found on this server. Apache/2.4.25 (Debian) Server at ... Port 80

My route: Route::get('/', function () { return view('welcome'); });

Route::get('/symulator', 'Sites@symulator')->name('symulator'); Route::get('/checklista', 'Sites@checklista')->name('checklista'); Route::get('wyniki', 'Sites@wyniki')->name('wyniki'); Route::get('/kalendarz', 'Sites@kalendarz')->name('kalendarz'); Route::get('/planowanie', 'Sites@planowanie')->name('planowanie'); Route::get('/kontakt', 'Sites@kontakt')->name('kontakt'); Auth::routes(); Route::get('/home', 'Sites@index')->name('home');

My catalog on server to: /var/www/ My catalog on localhost: /www/app/

0 likes
4 replies
Snapey's avatar

what is the url of your homepage on the server?

DC Blog's avatar

Make sure your public/.htaccess file has been uploaded, sounds like mod-rewrite is not getting picked up.

.htaccess provides that support.

zimab's avatar
Level 1

http://raceday.projektstudencki.pl/

public.htaccess has been uploaded, below output from file:

Options -MultiViews -Indexes

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]

Please or to participate in this conversation.