Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

Config issue for rewrite / redirect

$
0
0
I just want to setup a simple redirect or rewrite between subdomain and domain but I am quite new to this so I can't figure it out. I have 3 things in my mind (not sure if all 3 is possible at same time)

1-) Redirect or rewrite http://api.domain.com/api?t=... request as http://domain.com/api?t=...
2-) Shouldn't change URL at addressbar
3-) Would be great if it gives 200 status instead of 301 or 302.

I tried rewrite but because they are not on same domain, nginx changes the URL.

Any help is appreciated!

Viewing all articles
Browse latest Browse all 4759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>