Skip to content
Advertisement

Laravel Redirecting multiple pointed URL’s [closed]

I have a live site that is going to have other URL’s pointed to it with SSL. I can’t seem to figure out how to have laravel redirect all incoming url traffic to its main url. If i use one of the new URL’s it shows up as that url which is fine but it doesn’t add SSL REDIRECT unless i actively add the Https to it. I’d prefer it to just switch over to the original APP_URL once the site responds to the URL request.

Laravel Framework 7.22.4

Advertisement

Answer

I actually found the solution:

writing a rewrite to all traffic in the .htaccess file found in the public folder. now all my other domains i have pointed to the site have redirected to the site correctly!

JavaScript
User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement