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]
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
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community