i need to remove the last / from all urls
whats is the .htaccess code why i need to use to: From this:
> alerta-estafa.com/numeros-de-telefono/699511414/
To this:
> alerta-estafa.com/numeros-de-telefono/699511414
How i can do it?
Thanks you!
i need to remove the last / from all urls
whats is the .htaccess code why i need to use to: From this:
> alerta-estafa.com/numeros-de-telefono/699511414/
To this:
> alerta-estafa.com/numeros-de-telefono/699511414
How i can do it?
Thanks you!
Assuming these URLs don't map to physical directories.
Using mod_rewrite near the top of the .htaccess file:
RewriteEngine On
# Remove trailing slash from URL of the form "/<string>/<number>/"
RewriteRule ^([\w-]+/\d+)/$ /$1 [R=302,L]