Nevermind, got if fixed on my end. Simple, just had to reread the wiki: rewrite ^ https://abcd.com/referrals$request_uri? permanent;by chiefops - Nginx Mailing List - English
I think I'm getting a bit further. I modified this a bit and its redirecting but not carrying the parameters. Here's the updated config: http { server { listen 80; server_name abcd.com; rewrite ^(.*) https://$host$1 permanent; } server { listen 80; server_name efgh.com; rewrite ^(.*) https://abcd.com/referrals/$1 redirect; } serby chiefops - Nginx Mailing List - English
I have two different domains. One is a shortened url for referrals. I want to be able redirect the host name from the short url with parameters to the actual url. For example: abcd.com/123456 rewrite/redirect to efgh.com/referrals/123456 Initially I used a CNAME setup for adbcd.com to rewrite to efgh.com but that doesn't rewrite the domain name or url. Here's a short version of mby chiefops - Nginx Mailing List - English