Remap Manager wildcard/pattern (or similar) capability


(Tim Davison) #1

Hi all

 

Have looked this up in manuals and just wanted to confirm my understanding is correct.  Is there any capability in the remap manager to do pattern matching (or similar)?  

 

E.g. I want any url with the following path (including child pages) to map to the following:

http://mydomain.com/some-page/* -> http://newdomain.com/different-page

From my looking seems like the answer is no, and that apache redirects would be required.  I have no server access so adding apache redirects requires us to engage with Squiz (no offense guys, love you and everything, but sometimes is plain faster if we can do it ourselves).

 

Just wanted to confirm my understanding, that remap manager is 1:1 only.

 

Cheers

 

 


(Joel Porgand) #2

Try this:

 

setup a site asset with the url http://mydomain.com/some-page

 

setup a redirect asset pointing to http://newdomain.com/different-page

 

point the index & not found fields on the site asset to the redirect asset


#3

JP do you use this approach often. We have to use apache redirects as well for wildcard redirects


(Birdg) #4

Hi, 

 

We also have a need to do this as we are moving/deleting alot of legacy sites. JP - it's an ingenious solution and I can see that it would work but it would be good to get some input from Squiz on whether it has any performance implications if used extensively.

 

:)

 

Graham


(Joel Porgand) #5

We used to run a bunch of redirects out of apache (and briefly nginx) but I got sick of asking for changes and I think squiz got sick of me asking so this was suggested as a solution. We currently use it to redirect a bunch of alternate domains for some of our small sites back to their primary domain. We do still have a couple of redirects setup in nginx for our bigger sites as there's a boatload of alternate domains for those guys so I didn't feel like setting them all up, and they shouldn't change anyway. 

 

It's more work to maintain but it cuts out the back and forth so it's less work overall. 

 

Can't really speak to the performance, but I can't see that it'd be a big deal unless you really go overboard with it. 


(Tim Davison) #6

Thanks JP.  I've used this approach as well, using it currently for some legacy domains, and it's very effective.  

 

I was asking about remap manager because we'll have 2-3 legacy sites shortly and stakeholders want all the top landing pages and their children to go somewhere specific.  To do it with sites/redirects like this I'll need to create 40-60 of them.  Do-able, but was just hoping there was any easier way.

 

I agree the backing-and-forthing with Squiz for apache redirects is time-consuming for both sides.


(Joel Porgand) #7

To do it with sites/redirects like this I'll need to create 40-60 of them.  Do-able, but was just hoping there was any easier way.

 

 

Doesn't sound like a lot of fun. I'd do it in apache unless you've got a work experience kid or something. 


(Birdg) #8

Thanks for the input JP.


(Birdg) #9

FYI this is an idea on Squiz Map (idea #971). It has been earmarked for 5.3 but presumably the more votes it gets the more likely it is to get into that release. I have voted for it. Please vote as well if you have access.

 

Thanks,

 

Graham