Answer the question
In order to leave comments, you need to log in
And another question about /public in laravel?
Hello. I know several ways to remove public from url in laravel project.
1) htaccess
2) document root
3) Transferring files and changing paths
The essence of the situation is this. An application is being developed that needs to be uploaded to many domains at once on different hosting/vps/vds. Different users will fill in, and forcing each of them to change the root document is not right. Transferring files and changing paths - the paths are also different, someone has public_html, someone has public or something else. The easiest option seems to be with htaccess. But this option has a hard minus, all urls are duplicated with /public (for example, site.ru/about has a duplicate site.ru/public/about). And so I think, is there a chance that such urls will get into the index and spoil the SEO optimization with their duplication, or if there are no links to such pages with /public anywhere, can you use this method? Maybe there is another solution?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question