mardi 28 février 2017

laravel 5 redirect route to external url

I am in the process of moving a website to a new version of the site that has been created to Laravel 5, however I need to link to some old static content in a subdirectory on my old site, so I would like to create a route that automatically re-directs any querys to a specific sub-directory to to the old site.

For example:

user goes to: http://ift.tt/2lva17K

I want it to redirect to:

http://ift.tt/2l8nAOz

and I want to have it do this for anything that comes in as

http://ift.tt/2lvadUQ ... I want it to duplicate the same path but redirected to the old site. I don't want to have to put in each brochure, as every once in a while a new brochure gets added...



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire