Discussion:
Webboard: Unable to remove SESSIONID with AliasProg
b***@mnogosearch.org
2013-10-08 12:40:15 UTC
Permalink
Author: monsieurpaul
Email:
Message:
Hi,

I'm quite new to mnogosearch and I'm experiencing an issue with AliasProg.

I want to index a page like
http://myserver/myapp/doc.do%3Bjsessionid=12CC078A31A8321D910CC965932A0F36?idDoc=5032

I want to remove the jsessionid, so I try using AliasProg :
AliasProg "echo $1 | sed 's/%3Bjsession[^?]*//g'"

My server line :
Server site http://myserver/myapp

with indexer -v 5 I can see that everything SEEMS to be fine :

indexer[24738]: [24738]{01} URL: http://myserver/myapp/doc.do%3Bjsessionid=12CC078A31A8321D910CC965932A0F36?idDoc=5032
indexer[24738]: [24738]{01} Starting AliasProg: 'echo http://myserver/myapp/doc.do%3Bjsessionid=12CC078A31A8321D910CC965932A0F36?idDoc=5032 | sed 's/%3Bjsession[^?]*//g''
indexer[24738]: [24738]{01} AliasProg result: 'http://myserver/myapp/doc.do?idDoc=5032'
indexer[24738]: [24738]{01} Server Site Allow 'http://myserver/'
indexer[24738]: [24738]{01} Allow by default
indexer[24738]: [24738]{01} Alias: 'http://myserver/myapp/doc.do?idDoc=5032'


But if I search this document, I see that the url WITH the jsessions thing is stored instead of the URL alias.

What I am doing wrong?

Thank you for your help


Reply: <http://www.mnogosearch.org/board/message.php?id=21541>
b***@mnogosearch.org
2013-10-09 12:56:44 UTC
Permalink
Author: monsieurpaul
Email:
Message:
OK, after a good night, I found this page :
http://www.mnogosearch.org/doc/msearch-indexer-configuration.html#alias-reverse


and then the way to make it using ReverseAlias :
ReverseAlias regex (http.*)%3Bjsession[^?]*(.*) $1$2

Reply: <http://www.mnogosearch.org/board/message.php?id=21542>

Loading...