내 커뮤니티 업적 표시줄을 확대합니다.

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Mark Solution

활동이 없어 이 대화는 잠겼습니다. 새 게시물을 작성해 주세요.

해결됨

Block query string debug=layout on dispatcher & AEM publish

Avatar

Level 4

I want to block access to all requests having querystring matching debug on dispatcher and redirect those requests to homepage after stripping this query string. Need help on this.

1 채택된 해결책 개

Avatar

정확한 답변 작성자:
Level 4

Hi, Rajeev

In your httpd ".conf" file, inside your VirtualHost tag - Write these rules.

RewriteEngine   On

RewriteCond %{QUERY_STRING} debug=layout

RewriteRule .* /? [R,L]

What it will do - For Eg.,

If your request url is - http://www.example.com/homepage.html?debug=layout

then it will redirect the url to http://www.example.com

Hope this helps! 

Thanks,

Vamsi

원본 게시물의 솔루션 보기

3 답변 개

Avatar

정확한 답변 작성자:
Level 4

Hi, Rajeev

In your httpd ".conf" file, inside your VirtualHost tag - Write these rules.

RewriteEngine   On

RewriteCond %{QUERY_STRING} debug=layout

RewriteRule .* /? [R,L]

What it will do - For Eg.,

If your request url is - http://www.example.com/homepage.html?debug=layout

then it will redirect the url to http://www.example.com

Hope this helps! 

Thanks,

Vamsi

Avatar

Level 9

Hi rajeev,

Restrict based on query string. Sample at https://docs.adobe.com/docs/en/dispatcher/disp-config.html#RESTRICTING QUERY STRINGS 

Thanks,

Avatar

Level 4

Worked like charm. Thank you for prompt response.