Trailing slash not working fine

The trailing slash at the last of URLs not working fine. I mean one can access the webpage through two URLs, one with a slash at last and one without a slash.

eg:
http://www.example.com/12345/
http://www.example.com/12345

When I clear the cache, the non-slash URL (www.example.com/12345) redirects to the slashed URL (www.example.com/12345/), but only for a single refresh. Very soon, it again does not redirect.

May i know what is causing this sir?

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Your Advertisement Here