E
E
Evgeny Perin2015-09-24 10:54:23
Laravel
Evgeny Perin, 2015-09-24 10:54:23

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

3 answer(s)
D
Dmitry Evgrafovich, 2015-09-24
@Tantacula

Set symbolic links to public

K
Kirill, 2015-09-24
@kirill89

Apparently you are looking for this ?

A
Alexey, 2015-09-25
@xelam

if there is access via ssh, then create a symlink, and if for your own installer, then, depending on the conditions, prescribe the desired path in the config.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question