How to "merge" pages by making URLs direct to each other?

  • 13 January 2015
  • 3 replies
  • 743 views

I have a few pages for different schools:

Something.com/school1,
something.com/school2… etc

It is too unwieldy to keep updating all of these pages, so I want to redirect everyone to
something.com/students

However, a lot of people have the old links, do I have any way to correct this without having a large number of “mirror” pages?


3 replies

Hi Pedro, 

Just to be clear, are you looking to apply a redirect from your already published pages (ex. something.com/school2) that pushes to one single page instead? If so, you should be able to implement a simple javascript redirect which will lead them to the proper page. 

My awesome colleague Mark put together a basic script on GitHub which will do just that. Just be sure to set the placement to HEAD in your javascript console: 

<br /> <span>window</span><span>.</span><span>location</span><span>.</span><span>replace</span><span>(</span><span>'</span><span>http://www.google.com/</span><span>'</span><span>);<br /> </span><span></</span><span>script</span><span>></span></pre>

Thanks Justin, I’ll try it and get back to you

Works, thanks Justin!

Reply