Apache: Rewrite rule to remove slashes from the permalink?
- by javipas
I've seen this previous question on ServerFault, and I want something similar, but I'm not sure how to accomplish it.
What I want is to remove all slashes from the permalink except for the one that goes after the domain name. For example:
http://www.muycomputerpro.com/Actualidad/Especiales/La-Ciudad-Eficiente-Netapp
would be redirected to
http://www.muycomputerpro.com/ActualidadEspecialesLa-Ciudad-Eficiente-Netapp
I need it to correct some 404 errors remaining on my WordPress blog under Apache web server. So, what would be the right rewrite rule?