Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

AEM 6.3: Bad Request when replacing dot in selector for slash

Avatar

Avatar
Validate 1
Level 1
Jeanmaradiaga
Level 1

Like

1 like

Total Posts

17 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 1
Jeanmaradiaga
Level 1

Like

1 like

Total Posts

17 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile
Jeanmaradiaga
Level 1

16-02-2021

I am trying to make my product details page have the following format: 

https://stage.aemsite.com/en/product-details/some-product

 

We use selectors for our product details so I understand AEM won't be able to interprete this, my idea was to use the dispatcher to allow a passthrough to the correct format https://stage.aemsite.com/en/product-details.some-product, but this is resulting in a bad request. I tested this on https://technicalseo.com/tools/htaccess/ and it should technically work.

 

 

RewriteCond %{REQUEST_URI} ^/([a-z]{2})/product-details/([^?]*)(/?)$
RewriteRule ^ https://%{SERVER_NAME}/%1/product-details.%2 [PT,L,NC]

 

Any idea?

View Entire Topic

Avatar

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,272 likes

Total Posts

3,151 posts

Correct Reply

887 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,272 likes

Total Posts

3,151 posts

Correct Reply

887 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile
Arun_Patidar
MVP

16-02-2021

Check your webserver settings the urls may be blocked. If the client is sending a request to an invalid URL — particularly one that is malformed via improper characters — this could result in a 400 Bad Request Error.

Is request reaching to AEM or Dispatcher or it is blocked by Apache server itself?