Expand my Community achievements bar.

SOLVED

Shorten the URL programatically

Avatar

Level 3

Hi All,

I have written a replication agent on my author instance which index the content pages on a search server on activation of page. The issue I am facing is it index the long url. But I need to index the short url. If I apply the rule under etc/map tree on my author instance, this rule gets applied when an author opens the page.

So, my usecase is to index the short url from author to search server, but when an author open the page on author environment, it should show the long url.

Thanks in advance.

1 Accepted Solution

Avatar

Correct answer by
Level 4

Why you need to do it programatically?? It will put extra load on server. Rather user Apache Mod Rewrite to shorten URLs. How to configure link rewriting

View solution in original post

2 Replies

Avatar

Correct answer by
Level 4

Why you need to do it programatically?? It will put extra load on server. Rather user Apache Mod Rewrite to shorten URLs. How to configure link rewriting

Avatar

Community Advisor

Hi Rajeev,

 

Almost same flow i have. On relication, page details pushed to queue and this records are picked by Indexing service. But we need domain(multiple domains mapped) and shorten url to index pages in collection.

Could you help me?

Thanks

heena