'Laravel routes return file not found when domain masking
I want to hide the domain where the content is being served from for specific URLs. The new site is built on laravel 8 and is under it's own apache subdomain. e.g. new.website.com The old site uses a different framework and has it's own subdomain. e.g. www.website.com
I'm using Apache directives on www.website.com to serve select content from new.website.com without redirecting the visitor's browser.
Everything appears to work fine for files that exist in the new.website.com public directory. However, Laravel routes return 404 "file not found" when accessing through proxy (domain masking). For example, www.website.com/test/ causes 404 to be returned from new.website.com even though going directly to new.website.com/test/ works fine.
Any ideas?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
