My site started off as a Movable Type site and thus "archives" was the default with "_" as the title separators. I am not expecting to get the "some_title_nam.php" to their corresponding "some-title-name-of-my-choice/" as that might be too much (I would still love to get this solve if possible though). However, I am looking for a solution to the problem described below.
# remove the "archives" created during the Movable Type days
RewriteRule ^archives/([0-9]{4})/(.*)-(.*)$ http://www.brajeshwar.com/$2-$3 [N]
The above works great for the removal of "archives" and the "month/day" addition before the title to my desired format of "http://www.brajeshwar.com/yyyy/title-name/.
But, I also did
RewriteRule ^archives/([0-9]{4})/(.*)_(.*)$ http://www.brajeshwar.com/$2-$3 [N]
to re-write the "_" from the title but do not work.
Can someone, please help me solve the last problem or get a combined one line code to solve both the issues that I am trying to solve above.
Thanking in anticipation.
|