Apache: Rewrite rule to remove slashes from the permalink?
Posted
by
javipas
on Server Fault
See other posts from Server Fault
or by javipas
Published on 2011-01-05T15:05:41Z
Indexed on
2011/01/05
15:55 UTC
Read the original article
Hit count: 286
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?
© Server Fault or respective owner