I have created a Single Page application using Angular and Laravel 5.6 which works fine on my machine. Basically the 2 frameworks exist differently. Next I have uploaded them on a live server and followed the tutorial on this link
Basically after running ng-build --prod I have copied all the generated files inside public folder in Laravel. I have also moved the index.html file from the dist folder of Angular to resources/views folder.
Next I have modified my routes/web.php to look like this:
Route::get('/', function () {
View::addExtension('html' , 'php');
return View::make('index');
});
My htaccess looks like below
DirectoryIndex public/index.php
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews
</IfModule>
RewriteEngine On
#Redirecting to https
RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://test-app.pwebk.com/$1 [R=301,L]
# Redirect Trailing Slashes If Not A Folder...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)/$ /$1 [L,R=301]
# Handle Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ public/index.php [L]
# Handle Authorization Header
RewriteCond %{HTTP:Authorization} .
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
## Fonts cache
ExpiresActive on
After configuring all that and reloading my browser I get a blank page,, Please assist?