page redirect, directory moved

Discussion in 'Server Operation' started by jmelon, Aug 29, 2010.

  1. jmelon

    jmelon New Member

    I'm almost done migrating a wordpress site for a friend but hit a bit of a snag and I'm not sure how to handle this.

    his old site is located in a directory /george
    so anyone who enters www.test.com is redirected to www.test.com/george

    The new site on my server does not use /george directory path.

    I need to know how I can redirect all requests coming to the /george path back to www.test.com

    Should I just do an html redirect on the 404 error page to send people back automatically to www.test.com or is there a way to do this via htaccess?

    help!
    thanks
    j
     
  2. jmelon

    jmelon New Member

    btw I tried this via .htaccess:

    Redirect 301 /dir/ http://www.example.com/newdir/

    but it is not working. I'm using latest Debian/apache install with ISPConfig.

    My .htaccess file does not work in the root for some reason, it only works when it is in wp-admin directory.
     

Share This Page