Laravel 7 Remove Public from URL

Laravel 7 Remove Public from URL

Real programmer

4 года назад

6,880 Просмотров

In this tutorial, we will learn about how to remove public from URL in laravel

Renaming the server.php to index.php
Copy the .htaccess from public folder to root folder
Changing .htaccess it a bit as follows for statics:

Blog: https://realprogrammer.in/laravel-7-remove-public-from-url/
Personal: https://siddharthshukla.in
Hey everyone, Sid here back again with another video!

I train professional software engineers that companies love to hire. I cover a wide range of subjects like programming, what's latest in tech, new frameworks, open-source products etc. I keep my interest in a wide area of tech like Javascript, Python, PHP, AWS, etc.

For any information reach out at [email protected]

#Laravel #RemovePublicFromURL
My Blog: https://siddharthshukla.in/blog
Instagram: https://www.instagram.com/siddharth_shukla018/
Facebook: https://www.facebook.com/siddharth018

Тэги:

#public_folder_remove #root #laravel_remove_public_folder_from_url #laravel_7_remove_public_folder #laravel_public_folder_remove #remove_public_folder_from_laravel #remove_public_folder_in_laravel #laravel_url #public #how_to_remove_public_from_url_in_laravel_7 #remove_public #clean_laravel_url #laravel_remove_.env #how_to_remove
Ссылки и html тэги не поддерживаются


Комментарии:

@sakhanyaswartbooi4857
@sakhanyaswartbooi4857 - 15.03.2022 12:43

Hello, is there away to remove %20 from url ?

Ответить
@GaryTaylorvw
@GaryTaylorvw - 15.03.2021 15:04

Hi, i did this, it removes the public folder, but theres no css, i've purged the cache on cloudflare and crome, tried other browsers and still no css

Ответить
@takbeertech8945
@takbeertech8945 - 16.10.2020 10:07

how can i remove index.php in laravel 8

Ответить
@Venezuelangel
@Venezuelangel - 23.09.2020 09:06

The reason for your downvotes is because this solution is extremely unsafe.

Ответить
@rachmadbudianto8434
@rachmadbudianto8434 - 04.07.2020 01:55

the public url is gone, but I can still access localhost/Project /.env
So my env file can be accessed by the user, I have not found a solution

Ответить