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

convert iis rewrite to nginx

$
0
0
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!

Viewing all articles
Browse latest Browse all 4759

Trending Articles