my website URL accept double slashes too. for example when I put https://www.jamalacademy.com/class/9th-class
it accept then if i put
https://www.jamalacademy.com//class/9th-class
or https://www.jamalacademy.com///class/9th-class
it accept too.. even if i add so many slashes it accept too..
Help me to get ride of this problem. my current htaccess file is like:
RewriteEngine On
RewriteCond %{THE_REQUEST} \s/+(.*?)/{2,}([^\s]*)
RewriteRule ^ %1/%2 [R=302,L,NE]
RedirectMatch 301 ^(.*)//+(.*)$ https://www.jamalacademy.com/$1/$2
RewriteEngine On
RewriteBase /
Options +FollowSymlinks
RewriteCond %{REQUEST_URI} //+
RewriteRule ^(.*) $1 [R=301,L]
RewriteEngine On
RewriteRule ^class/(.*)/?$ classes_list.php?get_page=$1 [NC,QSA]
thanks in advance.