Highlighted

Using Apache rewrite to configure dispatcher AEM

Avatar

Avatar

alissonxavier01

Avatar

alissonxavier01

alissonxavier01

04-10-2019

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

Replies

Highlighted

Avatar

Avatar

jbrar

Employee

Avatar

jbrar

Employee

jbrar
Employee

04-10-2019

Highlighted

Avatar

Avatar

alissonxavier01

Avatar

alissonxavier01

alissonxavier01

04-10-2019

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?

Highlighted

Avatar

Avatar

albini65002106

Avatar

albini65002106

albini65002106

04-10-2019

Highlighted

Avatar

Avatar

Jörg_Hoh

Employee

Total Posts

3.0K

Likes

911

Correct Answer

1.0K

Avatar

Jörg_Hoh

Employee

Total Posts

3.0K

Likes

911

Correct Answer

1.0K
Jörg_Hoh
Employee

04-10-2019

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