Can you pls help with code that is in the .htacess file which redirect the to the Public folder that has the index page? That seems to be catch, u dint explain that part. Thanks
I already have an .htaccess file in the public folder of my Laravel 9.5 project, should I add another .htaccess file on the main root? In case I don't I get a 403 error on my site meaning an error accessing my resources
Hello what laravel version is your application? mine wont work using your method and I am still trying other method still it wont work. when I am searing my domain it just sending Happy to see your domain with Hostinger! page
Tried to deploy my laravel project on hostinger it works however it does not load the resources it just says :Failed to load resource: net::ERR_CONNECTION_REFUSED: in console. my larevel project uses tailwind and other installed libraries and non of them are working, tailwind not applying, apexcharts and other installed libraries all I see is a mess html front, no styling applied but works on local
I found this technique difficult, you may encounter problems in cache, and public/public_html here. Hostinger have SSH which is easier in deploying Laravel.
You are right but you have SSH at least with the premium hosting plan, i bought the first plan and i do not have this access so i am suffering actually to deploy my laravel 10 project
my laravel 8x got error 500 , another ht access not working : My Htacess still work normal on xamp and my sql : Options -MultiViews RewriteEngine On # 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 ^ index.php [L] # Handle Authorization Header RewriteCond %{HTTP:Authorization} . RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ /index.php?path=$1 [NC,L,QSA]
If you have npm packages in your project then no worries, but if you want to install the new package with npm you can do that with a terminal or install it locally first and deploy it again.
First of all, you should not use laravel 9 because it needs the latest PHP and most of the packages and hosting do not support the latest PHP. But Yes it is also for laravel 9
hello. what is the code under .htaccess file? can i get it
Yes, it is available on the internet also.
stackoverflow.com/questions/24620505/laravel-htaccess
Thanks dude! Just what i needed in a concuse way
Glad I could help!
Can you pls help with code that is in the .htacess file which redirect the to the Public folder that has the index page? That seems to be catch, u dint explain that part. Thanks
I already have an .htaccess file in the public folder of my Laravel 9.5 project, should I add another .htaccess file on the main root? In case I don't I get a 403 error on my site meaning an error accessing my resources
You should also have a .htaccess file in the root directory
@@takneekicode okay, but in that case I got a 403 access file error. Sorry, can you help me?
@@jeanwona2689hey did u solved the error?
Isn't it dangerous to host the application inside public html?
How do u know all this. Where to learn all this@@iskelbimai-lt
@@iskelbimai-lt I did this but it resulted to HTTP ERROR 500
After I Followed his tutorial, It work but the design (Tailwind) didn't connect.
Very informative sir.. Please also make a video on ajax with laravel
Ajax not use inside Laravel instead use live wire
It worked on me, but the design (Tailwind) is not showing
Can you run php artisan websocket:serve and queue:work on that shared hosting?
Hello what laravel version is your application? mine wont work using your method and I am still trying other method still it wont work. when I am searing my domain it just sending Happy to see your domain with Hostinger! page
Delete the default file and upload the htaccess it should work
I successfully deployed the laravel 8 application with database but on clicking the menu the routes are not working.. Please help sir
What issue u are facing?
@@takneekicode on clicking on menu links the server response the page not found or bad link
.env without caching sometimes create unexpected behavior.. better to run optimize first ,, or just be ready everything before upload
Tried to deploy my laravel project on hostinger it works however it does not load the resources it just says :Failed to load resource: net::ERR_CONNECTION_REFUSED: in console. my larevel project uses tailwind and other installed libraries and non of them are working, tailwind not applying, apexcharts and other installed libraries all I see is a mess html front, no styling applied but works on local
Were you developing your project in some folder of xampp?
thanks a lot chef🙏
Most welcome 😊 👍🏻
can dbeaver be use?
I found this technique difficult, you may encounter problems in cache, and public/public_html here. Hostinger have SSH which is easier in deploying Laravel.
You are right, exactly what I said in the video this method is for beginners and it takes time. I will also upload ssh method.
You are right but you have SSH at least with the premium hosting plan, i bought the first plan and i do not have this access so i am suffering actually to deploy my laravel 10 project
my laravel 8x got error 500 , another ht access not working : My Htacess still work normal on xamp and my sql :
Options -MultiViews
RewriteEngine On
# 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 ^ index.php [L]
# Handle Authorization Header
RewriteCond %{HTTP:Authorization} .
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php?path=$1 [NC,L,QSA]
thank for support . I have done change version php 8.4 -> 7.4 so my website have work again with laravel 8
I am getting index of / . what should i do
Please follow all step and make sure your htacces file is correct
thank you bro, you handsome
does hostinger support 9.5?
Yes
what about npm?
If you have npm packages in your project then no worries, but if you want to install the new package with npm you can do that with a terminal or install it locally first and deploy it again.
Why do u have htaccess at first
To secure my folders and website
not for laravel 9
First of all, you should not use laravel 9 because it needs the latest PHP and most of the packages and hosting do not support the latest PHP. But Yes it is also for laravel 9
This is for free
No, you need to buy Hostinger account.
I disliked the video for the reason ignoring security when it comes to sharing most essential files out in public. This is worst than anything