Remapping legacy URLs with wilcards

Hi there, new to Squiz and this forum (just making excuses) and here's my first post…


We have a lot of links that no longer work and simply don't fall out of Google.



For example:

http://www.mymegacorp.com/news/details/1005

http://www.mymegacorp.com/news/details/1006

http://www.mymegacorp.com/news/details/1007

http://www.mymegacorp.com/news/archive?start=340

http://www.mymegacorp.com/news/archive?start=567

http://www.mymegacorp.com/news/archive?start=789



We have moved all the news to much more sensible and SEO-friendly URLs:

http://www.mymegacorp.com/home-page/news/some-story

http://www.mymegacorp.com/home-page/news/another-story

http://www.mymegacorp.com/home-page/archive/yet-another-story



Sadly there's no way to translate the IDs from the legacy URLs to the new URLs, therefore I want to redirect anything that goes to /news/[whatever…] to a new URL (/home-page/news/). Is this possible only using Squiz?



Many thanks, Paul.

Hi Paul,


Unfortunately wildcard remaps are not currently possible in Matrix (although there is a Roadmap issue filed to fix this but no ETA).



The way we currently do this is to just add the rules in Apache instead. It's just a simple line that will need to be added by your system/server team to the Apache virtualhost:


    
    RedirectMatch ^/news(.*)$ http://www.mymegacorp.com/home-page/news$1


Hope this helps.

Many thanks; that's what I thought. Now to convince the server guys to let us write some rules for them :stuck_out_tongue: