Hi
I have some (wierd) URLs that i need to redirect to a new site. Problem
is
that original site is made with IBM Lotus Domino and URLs are somewhat
“funny”.
My problem is how should i made these redirections to nginx
configuration,
here is couple examples:
http://www.isku.fi/iskuasp/interiorweb.nsf/sp?Open&action=openproduct&lang=fin&id=A47E5D15953F2602C22576340
need’s to go → http://www.iskuinterior.fi
Okay that was easiest one, because i have these kind of URLS too:
http://www.isku.lt/IskuASP/interiorweb.nsf/sp2?Open&secondNavinf=Eng\Navi\Products\Desks%20and%20tables&secondNavinfa=o&action=openproduct&id=4798A4EB88F4D451C22576690&lang1=eng&Pöydät|Työpöydät|Matrix%20Y
should goto:
http://www.iskuinterior.fi/interior/actions/customer_base/product/ProductView.action?productId=210228&returnUrl=http%3A%2F%2Fwww.iskuinterior.fi%3A80%2Finterior%2Factions%2Fisku_interior%2Fproduct%2FProductFamilySearch.action%3FproductFamilyId%3D46275
Problem is that some URLs that i got are escaped like:
http://www.isku.fi%2FiskuAsp%2Finteriorweb.nsf%2Fsp%3Fopen%26cid%3Dindexfin&ei=p77fS8DxMt2gOMHShfEI&usg=AFQjCNFkPJRA5VvhQ5qs2A1FBU2cH1Y6Fg&sig2=vOXFzYS0xyyqS_iQ2DIIFA
Should goto:
http://www.iskuinterior.fi
Should i just give up and tell customer that its a nogo… My head hurts
already…
Terveisin/Regards,
Pekka Panula, Sofor Oy - Jatkuvat palvelut
-------- Original-Nachricht --------
Datum: Mon, 17 May 2010 13:45:39 +0300
Von: [email protected]
An: [email protected]
Betreff: URL rewrites - IBM Lotus Domino
Should i just give up and tell customer that its a nogo… My head hurts
already…
You first need to understand how Domino is producing those URLs before
you can even think of doing a mapping in Nginx.
Domino in general works with:
- UNID (Universal ID. Should be unique in a Domino domain)
- NoteID (should be unique per database)
- Replication ID (should be unique per Domino domain)
Domino has many ways to represent a URL for the same thing. For example:
All the above could open the same database.
Then after the database you can address many different things:
/<view|document|page|folder|outline|frameset|agent|webservice|xpages|image
resource|file resource|Lotuscript library|Javascript
library|etc>?
And most of those things after the database can be either a name (like
“sp” in your case) or a UNID or an alias or or or…
You can off course write mappings for that. But your customer needs to
tell you what needs to be mapped to what. Your customer can impossibly
expect you to know all the combinations. He is the one who needs to tell
you what to do. After you have that list, writing the rewrites in Nginx
is easy.
Terveisin/Regards,
Pekka Panula, Sofor Oy - Jatkuvat palvelut
// Steve
GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!
Jetzt freischalten unter Aktuelle Nachrichten aus Politik, Wirtschaft & Panorama | GMX
You can off course write mappings for that. But your customer needs
to tell you what needs to be mapped to what. Your customer can
impossibly expect you to know all the combinations. He is the one
who needs to tell you what to do. After you have that list, writing
the rewrites in Nginx is easy.
// Steve
In this case i dont need to map those different types but those i
copied,
they are actual URL that web site produces in certain situation, eg.
link
in the site that needs to go to new site. But as they are URL args in
nature and contains special characters etc, like spaces, / or \ chars,
etc. i wonder how in actually rewrite those URLs in nginx, its kinda
difficult because most part of URL is arguments.
Terveisin/Regards,
Pekka Panula, Sofor Oy - Jatkuvat palvelut