mercredi 3 octobre 2018

How do I redirect URLs in a Laravel project?

I have experience using .htaccess files to redirect user requests from one place to another. However, I am new to Laravel and have never attempted to do redirects in Laravel.

What's the best way to do redirects in Laravel? Is it as simple as putting an .htaccess file in the project root and doing things like I normally would, or does Laravel have a special way of doing this?

For my specific use case, I want to redirect requests to images in an img directory to another publicly accessible path.

Thank you.



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2NYvuZj
via IFTTT

Aucun commentaire:

Enregistrer un commentaire