# URL rewrites - IBM Lotus Domino

**URL:** <https://www.ruby-forum.com/t/url-rewrites-ibm-lotus-domino/188730>\
**Category:** NGINX\
**Created:** [May 17, 2010, 12:46pm UTC](https://www.ruby-forum.com/t/url-rewrites-ibm-lotus-domino/188730 "2010-05-17T12:46:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [May 17, 2010, 12:46pm UTC](https://www.ruby-forum.com/t/url-rewrites-ibm-lotus-domino/188730/1 "2010-05-17T12:46:37Z")

</div>

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](http://www.isku.fi/iskuasp/interiorweb.nsf/sp?Open&action=openproduct&lang=fin&id=A47E5D15953F2602C22576340)  
need’s to go → [http://www.iskuinterior.fi](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](http://www.isku.lt/IskuASP/interiorweb.nsf/sp2?Open&secondNavinf=Eng%5CNavi%5CProducts%5CDesks%20and%20tables&secondNavinfa=o&action=openproduct&id=4798A4EB88F4D451C22576690&lang1=eng&P%C3%B6yd%C3%A4t%7CTy%C3%B6p%C3%B6yd%C3%A4t%7CMatrix%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](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](http://www.isku.fi)%2FiskuAsp%2Finteriorweb.nsf%2Fsp%3Fopen%26cid%3Dindexfin&ei=p77fS8DxMt2gOMHShfEI&usg=AFQjCNFkPJRA5VvhQ5qs2A1FBU2cH1Y6Fg&sig2=vOXFzYS0xyyqS\_iQ2DIIFA  
Should goto:  
[http://www.iskuinterior.fi](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

---

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [May 17, 2010, 6:50pm UTC](https://www.ruby-forum.com/t/url-rewrites-ibm-lotus-domino/188730/2 "2010-05-17T18:50:11Z")

</div>

-------- Original-Nachricht --------

> Datum: Mon, 17 May 2010 13:45:39 +0300  
> Von: [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> An: [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> 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:

- [http://www.isku.lt/IskuASP/interiorweb.nsf?OpenDataBase](http://www.isku.lt/IskuASP/interiorweb.nsf?OpenDataBase)
- [http://www.isku.lt/IskuASP/interiorweb?OpenDataBase](http://www.isku.lt/IskuASP/interiorweb?OpenDataBase)
- [http://www.isku.lt/IskuASP/](http://www.isku.lt/IskuASP/)?OpenDataBase
- [http://www.isku.lt/](http://www.isku.lt/)?OpenDataBase

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 [http://portal.gmx.net/de/go/maxdome01](http://portal.gmx.net/de/go/maxdome01)

---

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [May 18, 2010, 7:51am UTC](https://www.ruby-forum.com/t/url-rewrites-ibm-lotus-domino/188730/3 "2010-05-18T07:51:33Z")

</div>

> - [http://www.isku.lt/IskuASP/interiorweb?OpenDataBase](http://www.isku.lt/IskuASP/interiorweb?OpenDataBase)  
> 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.  
> // 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
