We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 22840
    • 1,572 Posts
    Hi All,

    Not MODX related but I need a little help if possible.

    We have a site that is on www.mydomain.com/shoppingcart, the client now wants to move the shop into the root domain which is no problem however there are 10,700 pages listed in goodle that we will need to re direct.

    Is it possible to redirect everything from /shoppingcart back to the root but keep the end of the url in tact ?

    IE: re-direct www.mydomain.com/shoppingcart/pages/support.html to www.mydomain.com/pages/support.html without having to do all 10,700 redirects, Just 1 if possible wink
      • 36926
      • 701 Posts
      Quote from: paulp at Apr 21, 2011, 10:34 AM

      Hi All,

      Not MODX related but I need a little help if possible.

      We have a site that is on www.mydomain.com/shoppingcart, the client now wants to move the shop into the root domain which is no problem however there are 10,700 pages listed in goodle that we will need to re direct.

      Is it possible to redirect everything from /shoppingcart back to the root but keep the end of the url in tact ?

      IE: re-direct www.mydomain.com/shoppingcart/pages/support.html to www.mydomain.com/pages/support.html without having to do all 10,700 redirects, Just 1 if possible wink

      Hey Paulp,

      this should work:

      redirect 301 /shoppingcart/ http://www.mydomain.com/

      You can use this tool to test it’s working:

      http://www.seoconsultants.com/tools/check-server-headers-tool/

      Ben

      EDIT: Only thing not 100% sure on is if that will redirect fine to the root. Try a test directory 1st, but pretty sure that will be ok.
        • 22840
        • 1,572 Posts
        Thanks benny, will give it a try grin