Support the ongoing development of Laravel.io →
Configuration Laravel Architecture
Last updated 1 year ago.
0

Try adding another rewrite condition:

RewriteCond %{HTTP_HOST} ^example.com$ RewriteCond %{REQUEST_URI} !^(assets|auth|sitemap) [NC] RewriteRule ^(.*)$ http://127.0.0.1:8080/$1 [P]

0

Still not working! Here is the code: ---

RewriteCond %{HTTP_HOST} ^example.com$ 
RewriteCond %{REQUEST_URI} !^(assets|auth|sitemap) [NC] 
RewriteRule ^(.*)$ http://127.0.0.1:8080/$1 [P]

When I try to load example.com/sitemap which is Laravel route, It takes me to my Node app running on http://127.0.0.1:8080

Last updated 5 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Jonson who-jonson Joined 10 Dec 2018

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.