I removed the "public" from the path use this instruction Laravel 5 – Remove Public from URL
But now vue scripts do not work. If you add to the path public script works (http://example.com/public/anket)
I removed the "public" from the path use this instruction Laravel 5 – Remove Public from URL
But now vue scripts do not work. If you add to the path public script works (http://example.com/public/anket)
After modify you need changing .htaccess like this:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)/$ /$1 [L,R=301]
RewriteCond %{REQUEST_URI} !(\.css|\.js|\.png|\.jpg|\.gif|robots\.txt)$ [NC]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} !^/public/
RewriteRule ^(css|js|images)/(.*)$ public/$1/$2 [L,NC]
This way static files will not be ignored and Vue components will work again.
Regards