How To Upload A Laravel Project To A Shared Hosting THE RIGHT WAY
A2hosting! Best for laravel apps!
In this video, I’m going to show you how to deploy your laravel project to a shared hosting server the right way via the .htaccess file. in this way, you don’t break the structure of your application by moving files from folder to folder.
dude! you read things from end to start!??? good god.
In 6.25 minutes eh,ah was for 3 min…
not working error 500 also on a2hosting
thanks its work 100%
Why explorer folder view is upside down?? Am I the only one who sees this?
wonderfulllll !!
Learn to speak first… DUMPASS!!!
Man just doooont talk iiiiis imposible to eeeee concentrate…
Ese acento… ¿eres chileno?
folder public not found, asset for css and js 404
Muy mal "way" de hacerlo, expones todo el proyecto laravel en la carpeta public_html. Lo mejor es dejar el proyecto fuera de esta carpeta, y solo colocar en public_html el contenido de la carpeta public de laravel.
This not right
i found the error NotFoundHttpException
in RouteCollection.php (line 179)
To access assets folder:
root folder:
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews
</IfModule>
RewriteEngine On
# Redirect Trailing Slashes If Not A Folder…
# RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ public/$1 [L]
# Handle Authorization Header
RewriteCond %{HTTP:Authorization} .
RewriteRule .* – [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
</IfModule>
public folder:
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews
</IfModule>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)/$ /$1 [L,R=301]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
RewriteCond %{HTTP:Authorization} .
RewriteRule .* – [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
</IfModule>
You are awesome! Thanks buddy!
awesome
hi gabmic do you remember m?
Great video content, you should cut out the um's and eh's though!
I am getting http error 500.
RTE windows? Its bizarre :). Good Tut
hi! what about the assets <img src="{{asset($pic)}}" > doesn't work nor <img src="public/{{asset($pic)}}">
Éxito xD!
Outstanding video
my data bases dont work, why?
Got it, thank you!
Tried exactly the same, still keep getting error 500. Does anyone knows the solution?
Thanks! 🙂
I'm using laravel 5.4. Should I compile my project for production first? (npm run production)?
For me it shows only a blank page. What to do?
Just rename server.php to index.php DONE!!!
Can you please tell web hosting which supports laravel.?
Thanks, helped me a lot
your orientation of the screen boggled my brain, but thanks this was helpful
Hello,
Thank you four your Help , But there is a problem , it work correctly for me , but without asset , and when i see url of asset it look like this : mydomaine.com/img/1.jpg , actualy it should be : mydomaine.com/public/img/1.jpg , please what should i do ?
If you do it this way your .env will be visible to the outside world! To protect your .env add this to the .htaccess file:
# Disable index view
Options -Indexes
# Hide a specific file
<Files .env>
Order allow,deny
Deny from all
</Files>
when i extract project folder .env, .htaccess and some other files are missing, could u help me please…