Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

manshu's avatar
Level 28

Laravel redirect issue with domain and forge.

So my issue is that i've few subdomains on apache and laravel app on example.com. Now i moved to forge, and forge is not letting me redirect to www and every time i visit subdomains they are hitting, nginx (forge) server and not picking it at apache server.

I used Curl -I to check the host for my subdomain. sub.example.com

HTTP/1.1 200 OK
Server: nginx 
Date: Sun, 10 Jan 2016 00:36:12 GMT
Content-Type: text/html; charset=utf-8
Connection: close

My question.

How do i remove the following from sites-available or sites-enabled in /etc/nginx/

return 301 $scheme //domain.com$request_uri  

0 likes
0 replies

Please or to participate in this conversation.