Create an NGINX configuration with Regex to handle multiple domain redirects

Fertiggestellt Veröffentlicht vor 7 Jahren Bezahlt bei Lieferung
Fertiggestellt Bezahlt bei Lieferung

I require an NXING configuration file to handle the following 301 redirects :

[url removed, login to view] -> redirects to -> [url removed, login to view]

example : [url removed, login to view] -> redirects to -> [url removed, login to view]

[url removed, login to view] -> redirects to -> [url removed, login to view]

example : [url removed, login to view] -> redirects to -> [url removed, login to view]

[url removed, login to view] -> redirects to -> [url removed, login to view]

example : [url removed, login to view] -> redirects to -> [url removed, login to view]

[url removed, login to view] -> redirects to -> [url removed, login to view]

example : [url removed, login to view] -> redirects to -> [url removed, login to view]

I'm looking for a single "server {" stanza that has a regular expression to handle all variations on the domain prefix and top level domain extensions. I need to avoid having separate "server {" stanza's for each TLD.

The redirect must preserve the HTTP / HTTPS scheme, as requested by the user, and redirect to [url removed, login to view] with the same.

The URI also needs to be passed in the redirect, after the /xxx component.

example : [url removed, login to view] -> redirects to -> [url removed, login to view]

I hope this all makes sense but I can provide further details if necessary.

Ingenieurwesen Linux Nginx Reguläre Ausdrücke System Admin

Projekt-ID: #11129786

Über das Projekt

1 Vorschlag Remote Projekt Aktiv vor 7 Jahren

Vergeben an:

Walrusyn

Hi, I'm a Linux sysadmin with 15 years of experience and would love to help you with this task. I manage lots of Nginx servers and I think I can build the redirects you need. Looking forward to hearing from you. Best r Mehr

€30 EUR in 1 Tag
(5 Bewertungen)
2.8