Hallo,
versuche schon seit Stunden eine Umleitung hinzubekommen, aber es klappt einfach nicht. Alles nach den Gleichheitszeichen, also nur die Nummern...
/cgi-bin/linfo.cgi?id=8358692
auf
/result.aspx?id=8358692
Vielen Dank im Voraus
Umletung von cgi auf aspx
Re: Umletung von cgi auf aspx
Apache mod_rewrite:
Code: Select all
RewriteRule ^/?cgi-bin/linfo\.cgi\?id=([0-9]+) /result.aspx?id=$1 [NC,QSA,L]PayPal.Me/JoeUser ● FreeBSD Remote Installation
Wings for Life ● Wings for Life World Run
„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
Wings for Life ● Wings for Life World Run
„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
Re: Umletung von cgi auf aspx
Danke für die Hilfe,
habe das in der Web.config eingefügt aber Statuscode 404
<rule name="Importierte Regel 1" stopProcessing="true">
<match url="^cgi-bin/linfo\.cgi\?id=([0-9]+)" />
<action type="Redirect" redirectType="Permanent" url="/result.aspx?id={R:1}" appendQueryString="false" />
</rule>
habe das in der Web.config eingefügt aber Statuscode 404
<rule name="Importierte Regel 1" stopProcessing="true">
<match url="^cgi-bin/linfo\.cgi\?id=([0-9]+)" />
<action type="Redirect" redirectType="Permanent" url="/result.aspx?id={R:1}" appendQueryString="false" />
</rule>
Re: Umletung von cgi auf aspx
Wenn ich die Google-Treffer richtig verstanden habe, dann muss es so aussehen:
Ansonsten scheint diese Anleitung recht brauchbar:
http://www.iis.net/learn/extensions/url ... ite-module
Code: Select all
<rule name="Importierte Regel 1" stopProcessing="true">
<match url="cgi-bin/linfo.cgi?id=([0-9]+)" />
<action type="Redirect" redirectType="Permanent" url="result.aspx?id={R:1}" appendQueryString="false" />
</rule>
http://www.iis.net/learn/extensions/url ... ite-module
PayPal.Me/JoeUser ● FreeBSD Remote Installation
Wings for Life ● Wings for Life World Run
„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
Wings for Life ● Wings for Life World Run
„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
Re: Umletung von cgi auf aspx
Habe es mit http://regex101.com/ ausprobiert und es funktioniert alles super aber ich jetzt nicht wieso es mit ASP.NET nicht klappt. Trotzdem vielen Dank
Re: Umletung von cgi auf aspx
Vielleicht mal hier schauen, so wie es scheint liegt es an der Konfiguration.
http://www.iis.net/learn/extensions/url ... -reference
http://www.iis.net/learn/extensions/url ... -reference
