New to nginx, totally confused.
How to convert this URL rewrite to nginx?
<rule name="Redirect1" stopProcessing="true">
<match url="^(about-us|sites\/company.com|item1|item2|item3)/.*$" ignoreCase="false" />
<action type="Redirect" redirectType="Permanent" url="https://backend.com/<which ever link they decide to click on>" />
</rule>
Do I need to add one locations for each item (ie. location /item1..... location /item2... etc)? Can I use one location directive for all items?
Thanks and I appreciate it!
How to convert this URL rewrite to nginx?
<rule name="Redirect1" stopProcessing="true">
<match url="^(about-us|sites\/company.com|item1|item2|item3)/.*$" ignoreCase="false" />
<action type="Redirect" redirectType="Permanent" url="https://backend.com/<which ever link they decide to click on>" />
</rule>
Do I need to add one locations for each item (ie. location /item1..... location /item2... etc)? Can I use one location directive for all items?
Thanks and I appreciate it!