magic is happening

.Htaccess to remove public from laravel app

Read Time16Seconds

create a .htaccess file in the root of your project and paste the following code in the file.

RewriteEngine on
RewriteCond %{REQUEST_URI} !^public
RewriteRule ^(.*)$ public/$1 [L]

And you are all set to go. Happy coding.

PS: If you want a complete guide for hosting laravel project in a shared server you can it from here

0 0

About Post Author

samgan

samgan excel at solving complex problems involving logic and step by step breakdown of the problem. In addition, to develop complex algorithms, he specialize in problem framing, systems design, and product development strategy. Sometimes he also enjoy public speaking.
0 %
Happy
0 %
Sad
0 %
Excited
0 %
Angry
0 %
Surprise

Leave a Reply

Your email address will not be published. Required fields are marked *

Close
Social profiles