Dear Members,
I am facing one unique kind of issue with "//" at the end of the url.
When I hit https://dev-demo.edev.mysite.com:8080/personalcare/shop/shampoo/ it works perfectly fine but when I hit the sam url with double slash at the end https://dev-demo.edev.mysite.com:8080/personalcare/shop/shampoo// it gives source of webpage.
When I check the same it browser's Network tab it simply try to call "/" as document as in below image
then I try to further analyse the dispatcher log I see with correct url it was looking for regular path in cache but with wrong url(with double slash) it try to look some thing strange to me like
/content/mysite/www/us/en_us/personalcare/shop/shampoo.fold.html/.html
we already have remove slash rule on the dispatcher and it is working fine in some environment.
I am not able to find the root cause of it. if any one can please share some insight on it.
Thanks
Umesh Thakur
Solved! Go to Solution.
Views
Replies
Total Likes
HI Umesh,
The root cause could be reverse mapping, which is adding .html after end /
You should check the reverse mapping rule as well.
Hi @Umesh_Thakur
I see the request URL has "fold" as the selector but not sure where it is coming from.
Can you please try with the below rule and see if it resolves the issue.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)/+$ $1 [R=301,L]
Thanks!
Hi @asuthosh, thanks for your response.
We already have similar rule like
HI Umesh,
The root cause could be reverse mapping, which is adding .html after end /
You should check the reverse mapping rule as well.
You should be redirecting these requests (ending with //) to 404 page at the apache/dispatcher level. Any specific requirement that you want to allow these pages?
Views
Likes
Replies