I am using apache2 + tomcat on ubuntu 10.4. I am running on tomcat server that has webapps listening on 8080
trying to redirect domain.com/category/post-name.html to new url >
domain.com/newcategory/blogs/category/post-name
what is the best possible way to achive this?
so far I have...
RewriteCond %{REQUEST_URI} ^/[a-zA-z0-9]+/[a-zA-z0-9]+/(.*)?\.html$
RewriteRule ^/[a-zA-z0-9]+/[a-zA-z0-9]+/(.*)?\.html$ http://www.domain.com/newcategory/blogs/$1 [R=301,NC,L]