Eliminar la barra de arrastre
## Remove trailing slash
RewriteRule ^(.*)\/(\?.*)?$ $1$2 [R=302,L]
Mysterious Macaque
## Remove trailing slash
RewriteRule ^(.*)\/(\?.*)?$ $1$2 [R=302,L]
VALUE=/looks/like/a/path///
TRIMMED=$(echo $VALUE | sed 's:/*$::')
echo $VALUE $TRIMMED