Search code examples
phplaravel.htaccesslaravel-5laravel-blade

how to remove "public" from url


hi everyone,

I want to deploy my Laravel project to production. the "public" not removing in base URL.

I have tried this solution:

  1. rename server.php to index.php

  2. cut .htaccess from /public and paste to root

it works but CSS, JS, images not loading.

if anyone knows about this problem please share your knowledge.

Thanks


Solution

  • Does not found any solution,

    I have configured the base Url with the public word in the apache Vhost configuration.

    in this way, my problem was solved