How To Fix Laravel 404 Not found

5/5 - (1 vote)

Here is a very simple way to fix 404 not found in Laravel 8 404, you need to change .htacces rules for whmcs

<IfModule mod_rewrite.c>
Options +FollowSymLinks
RewriteEngine On

RewriteCond %{REQUEST_URI} !^/public/ 

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f



RewriteRule ^(.*)$ /public/$1 
#RewriteRule ^ index.php [L]
RewriteRule ^(/)?$ public/index.php [L] 
</IfModule>


if this does not work you can try this code

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^(.*)$ public/$1 [L]
</IfModule>

or you can try this one to fix 404 error


<IfModule mod_rewrite.c>
Options +FollowSymLinks
RewriteEngine On

RewriteCond %{REQUEST_URI} !^/public/ 

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f

RewriteRule ^(.*)$ /public/$1 

</IfModule>

Options +FollowSymLinks -Indexes

RewriteEngine On

RewriteCond %{HTTP:Authorization}

RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

RewriteCond %{REQUEST_FILENAME} !-d

RewriteCond %{REQUEST_FILENAME} !-f

RewriteRule ^ index.php [L]

I hope it will fix your website 404 error. if you still need help you can hire us for any support.

Total
0
Shares
Leave a Reply

Your email address will not be published. Required fields are marked *

Previous Post

How To Fix Error: “DNS_PROBE_FINISHED_NXDOMAIN” in Server

Next Post

Unable to install any options using easyapache4 Fix

Related Posts
Total
0
Share