Your connection is not private

Amit Kumar
2 min readAug 7, 2021

--

Attackers might be trying to steal your information from laravel-crud (for example, passwords, messages, or credit cards). Learn more

When i create virtual host in Laravel after all the setup when i open this project its showing. Your connection is not private

So let’s go to how to fixed it.

Your connection is not private

Attackers might be trying to steal your information from laravel-crud (for example, passwords, messages, or credit cards). Learn more

NET::ERR_CERT_AUTHORITY_INVALID

So let’s go to C:\xampp\htdocs\laravel-crud\public

Now open .htaccess file and put below code.

<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews -Indexes
</IfModule>

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]
</IfModule>

Now run your project it’s run successfully.

--

--

Amit Kumar
Amit Kumar

Written by Amit Kumar

Hi I am Amit Experienced Web Developer with a demonstrated history of working in the information technology and services industry.

No responses yet