.htaccess - Migrating to new cms. Old cms moving to another subdomain. Dealing with links with htaccess (IF/THEN) -
the situation following:
i moving new cms. before complete migration old 1 new decided start beta version of new one. have:
- old -> http://www.myweb.com
- new -> http://beta.myweb.com
but old 1 renamed http://old.myweb.com , new 1 http://www.myweb.com , so:
- old: http://www.myweb.com -> http://old.myweb.com
- new: http://beta.myweb.com -> http://www.myweb.com
difference in links @ moment following:
- old -> http://www.myweb.com/content/crab-goes-home-5
- new -> http://beta.myweb.com/stock-video/crab-goes-home-5-8523.html
(*as see, new url has "stock-video" instead of "content". in end of new url addition "-8523" unique, dynamically generated id.)
i want achieve following: don't want shut down old website(because of seo), because new web have 80% of old 1 website's content.
so if user enters(after migrations) i.e. url "http://www.myweb.com/content/crab-goes-home-5" , page missing, user must redirected http://old.myweb.com/content/crab-goes-home-5 (because page not exist on new system, still exist on old one).
any , comments welcome! thanks
Comments
Post a Comment