Can authoring be done using short URL's ? | Community
Skip to main content
Level 4
Jun 19, 2018 6:19 AM UTC
Solved

Can authoring be done using short URL's ?

There is a requirement from client that they doesn't want any links on the page to be long Url which contain full content path (/content/...)

We thought of using short URL's in authoring and activating the page, as AEM is not able to recognize the shorten URL, it's removing the reference from the page.

We thought of applying redirects at Apache level to shorten the URL in the browser, but that will help in one way but the links in the page can't be shortened.

Please help us here

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Lokesh_Shivalingaiah
Lokesh_ShivalingaiahAccepted solution
Level 10
Jun 20, 2018 11:39 PM UTC

Hi,

We need to do both apache rewrite rule aswell as sling mapping under /etc/map for this to work

Refer: Resource Mapping

Thanks,

Lokesh

5 replies

Lokesh_Shivalingaiah
Lokesh_ShivalingaiahAccepted solution
Level 10
Jun 20, 2018 11:39 PM UTC

Hi,

We need to do both apache rewrite rule aswell as sling mapping under /etc/map for this to work

Refer: Resource Mapping

Thanks,

Lokesh

Translate
Level 4
Jun 20, 2018 8:20 AM UTC

Hi Jorg,

As per your reply, once the sling mappings are configured for an internal redirect from domain to the full content path, it should automatically change the URL references in publish, but i don't see that it is happening. we have already configured /etc/map for the websites but still the URL's on the website are still long URL's.

I understand that this can be done using mod substitute in Apache, would you think that it would be good to use Mod_Substitute rather than AEM mappings?

Thanks,

Ramgopal

Translate
Level 4
Jun 20, 2018 8:16 AM UTC

Hi Donald,

Thanks for the reply.

This is for a single URL, but we want AEM/Apache to shorten the URL's automatically by removing the redundant content path in all URL's.

Regards,

Ramgopal.

Translate
joerghoh
Employee
Jun 19, 2018 6:52 PM UTC

You could let the author select the pages with full page and store the full paths in the repository. And then configure sling mapping to rewrite the links to short versions.

Jörg

Translate
smacdonald2008
Level 10
Jun 19, 2018 6:23 PM UTC

Have you thought about using Manage vanity URLs

Translate