I am porting a site from an old version of a CMS to a newer version which has different page addressing techniques. I'm unfortunately not very good with htaccess at all.
URL/blog/sublblog/article.html is now simply URL/article.html
Unfortunately, this will destroy any linking programs they have going, and break all the old links. I need a way to use .htaccess say:
if request = /(any subdirectory)/(string).html
then redirect to /(string).html
If that makes any sense.
RewriteRule ^(.*)$ http://www.yoursite.com/$1 [L,R=301]which is part of the tutorial linked above. If you read something about regular expressions, you should be able to adapt the examples from there. – Michael Jun 19 '12 at 18:58