In: .htaccess
In order to remove double or multiple slash from your URL using only .htaccess you can use following code:
1 2
RewriteCond %{REQUEST_URI} ^(.*)//(.*)$ RewriteRule . %1/%2 [R=301,L]
Dejan is pragmatic software developer with Master's Degree in Computer Science. He is currently based in Belgrade (Serbia).