How do I use .htaccess RewriteRule to change underscores to dashes?

Just take the rule you were using already: RewriteRule ^(^_*)_(^_*_. *) $1-$2 N RewriteRule ^(^_*)_(^_*)$ /$1-$2 L,R=301 …and put it before all other rewrite rules, and everything should work Also, you used RewriteBase twice. You can omit it the second time, since it’s already defined.

Just take the rule you were using already: RewriteRule ^(^_*)_(^_*_. *) $1-$2 N RewriteRule ^(^_*)_(^_*)$ /$1-$2 L,R=301 …and put it before all other rewrite rules, and everything should work. Also, you used RewriteBase / twice.

You can omit it the second time, since it’s already defined.

Thanks for that Mathias - I'd actually tried that before and not realised it worked due to the way the error page works on my CMS. Much appreciated! – soopadoubled Apr 19 '10 at 11:42.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions