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.
Solved! Go to Solution.
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
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
Hi rajeev,
Restrict based on query string. Sample at https://docs.adobe.com/docs/en/dispatcher/disp-config.html#RESTRICTING QUERY STRINGS
Thanks,
Views
Replies
Total Likes
Worked like charm. Thank you for prompt response.
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies