MYHOSPITALNOW.COM

Find Trusted Doctors & Hospitals

Discover healthcare providers, compare hospitals, and explore treatment options worldwide.

Free Treatment Quotes • Doctor Search • Hospital Comparison

Find Healthcare Options

www.myhospitalnow.com

Laravel – Remove Public from URL using htaccess

Step 1: Rename File

In first step it is very easy and you need to just rename file name. you have to rename server.php to index.php at your laravel root directory.

Laravel root directory in File Explorer with server.php highlighted for renaming to index.php

Step 2: Move Files

Move css , js ,fonts and image directories and .htaccess file from public directory to laravel root directory

Laravel public folder with css, fonts, js and .htaccess highlighted to move to the root
Laravel root folder in Windows Explorer with css, fonts, js folders and .htaccess moved from public highlighted

Step 3: Update .htaccess

Find Trusted Cardiac Hospitals

Compare heart hospitals by city and services — all in one place.

Explore Hospitals
I'm Rajesh Kumar, a DevOps, SRE, DevSecOps, Cloud, and Platform Engineering expert passionate about sharing practical knowledge, real-world experiences, and industry best practices. I have worked at Cotocus and regularly write about technology, travel, investing, health, product reviews, and digital marketing through my various platforms. I publish technical articles at DevOps School, travel stories at Holiday Landmark, stock market insights at Stocks Mantra, health and fitness guidance at My Medic Plus, product reviews at TrueReviewNow, and SEO and digital marketing strategies at Wizbrand.

Related Posts

Apache: Comprehensive List of .htaccess Directives, Rules, and Commands

However, an “absolutely complete” list is technically impossible to print here in full—because the .htaccess file can use nearly any Apache directive that is allowed by the…

Read More

Increasing the Maximum Image Upload Size on a WordPress Site

Increasing the upload file size limit in WordPress allows you to upload larger images (or other media) without errors. Many hosting providers set a default upload limit…

Read More

Laravel Tutorials: How to run Laravel Projects in Subdirectory

The issue you’re experiencing is common with Laravel applications when deployed in a subdirectory. By default, Laravel’s entry point is the public directory, which means you need…

Read More

Setup phpvibe and mediavide with subdirectory

Checklist 1 – Content of .htacces Checklist 2 – Make sure admin user is created in database table vibe_users Checklist 3 – Mcrypt must be installed Checklist…

Read More

How to Secure .git repo repository files and directory web inaccessible

Many times, people use git repository to host website in productions by clone-push-pull but it has one drawbacks, it appears the .git directory is accessible via the…

Read More

Apache non www to www config Setting

Rajesh Kumar I’m Rajesh Kumar, a DevOps, SRE, DevSecOps, Cloud, and Platform Engineering expert passionate about sharing practical knowledge, real-world experiences, and industry best practices. I have…

Read More