I had subdomain like m.domain.com and now I removed it and changed the website to responsive. Now I want to redirect all not found url's of m.domain.com to domain.com like below urls
m.domain.com/categoryname/post/ to domain.com/categoryname/post/
m.domain.com/category/categoryname/ to domain.com/category/categoryyname/post/
m.domain.com/tag/tagname/ to domain.com/tag/tagname/
Please somebody help me with rewriting rules for correct redirection.