Shorten the URL programatically | Community
Skip to main content
Rajeev_Kumar
February 27, 2018
Solved

Shorten the URL programatically

  • February 27, 2018
  • 2 replies
  • 1855 views

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.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by navinkaushal

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

2 replies

navinkaushal
navinkaushalAccepted solution
February 27, 2018

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

HeenaMadan
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
June 17, 2022

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