Best approach to remove appending " /"
Hi All,
When we tried to hit the URL with appending - '/' like:- http://<>*.mp4/ for the first time, request goes to the CQ and gives the error, but in this process dispatcher is creating folder with *.mp4. and as usual next subsequent requests will give errors as it tries to fetch from the cache.
What would be best approaches:-
1, like adding a rule in dispatcher like:- this worked for me.
/0046 { /type "deny" /glob "GET *.mp4/*" }
2, Adding a rewrite rule on the apache. it also worked but i it is creating issue some times.
RewriteRule ^(/.*\.(png|gif|jpg|mp4))/$ $1
Thanks,
viki