Using Apache rewrite to configure dispatcher AEM | Community
Skip to main content
Level 3
Oct 4, 2019 1:35 PM UTC

Using Apache rewrite to configure dispatcher AEM

Hi Guys,

We have a new requirement in our projets to configure many URLs.

We must be able to parameterize at the URL level what the client does on screen, as well as
can have a specific URL of the different views (filters) that are available, here some
example:

Page:

DOMAIN/page1/

Page with the filter enabled:

DOMAIN/page1.new/

DOMAIN/page1.sales/

So we have the page1 in AEM but new is a parameter to use in the filter.

Does anyone have an idea like how we can do that?

Thanks a lot

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

4 replies

joerghoh
Employee
Oct 4, 2019 8:42 PM UTC

You should consider to

* use the extension (I don't think that striping the .html extension has impact on SEO at all)

* use selectors (Apache Sling :: URL decomposition )

Jörg

Translate
Employee
Oct 4, 2019 1:44 PM UTC

You can look into implementing dynamic redirects at the apache level. Check [1] for more details

[1]

Dynamic mass virtual hosts with mod_rewrite - Apache HTTP Server Version 2.5

https://stackoverflow.com/questions/25577077/dynamic-rewrite-with-mod-rewrite-and-apache

Translate
Level 3
Oct 4, 2019 2:58 PM UTC

Hi JaideepBrar​,

We have a problem.

If the page there isn't in AEM the error is showed like this.

Do you have any idea?

Translate
Level 2
Oct 4, 2019 6:03 PM UTC