Expand my Community achievements bar.

Shortening of URL

Avatar

Level 4

Hi,

We are planning to do shortening of URL in our project.

Could anyone suggest how we can do?

1. How we can configure in local/Development Instance. 

2. How I  can do in Apache redirection rule for Prod environment.

3. What kind of settings do I need to in dispatcher side for shortening URL?

Is there any settings do I need to move the file from dev to prod instance.

Please suggest

 

Thanks,

Kannan

2 Replies

Avatar

Level 10

You can make use of the Apache org.apache.sling.rewriter functionality. Details here: 

http://sling.apache.org/documentation/bundles/output-rewriting-pipelines-org-apache-sling-rewriter.h...

We have an example of using this with AEM here: 

https://helpx.adobe.com/experience-manager/using/creating-link-rewrite.html

Hope this helps. 

Thanks for the reply Smac.

Scenario:

www.xyz.com --> Internally it will refer http://system:portnumber/content/en/english/xyz.html

1. how we can push/create our configuration files for Short URL in Akamai CDN.
2. What kind of configuration/files  do we need to write in our dispatcher side for this Short URL?
3. How can we push settings from Dispatcher to CDN (or) Do we need to write redirection rules in both the places?
4. If we are doing via etc/map in our development environment, How I can move to dispatcher from dispatcher how I can move to Akamai?

Am not sure about the process and files.
Please assist me or link to read.