Forum Moderators: phranque
I want a rule in my .htaccess file whereby I can replace all the underbars in a URL to dashes. How should I do this?
For example, let us say that user types this URL:
http://mydomain.com/one_big_url.html
http://mydomain.com/one-big-url.html
RewriteRule ^(.*)_(.*)$ /$1-$2 [L]
Does anyone know how to "match all" the underbars and replace them with dashes?
Thanks!
While that may not be the reason I cannot be found for my KW’s, it is one of my 3 best guesses as to why.
But that is just my opinion.