1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to redirect all sub-directories.

Discussion in 'General Scripting Chat' started by RoseDawson, Jul 15, 2012.

  1. RoseDawson

    RoseDawson Newbie

    Joined:
    Apr 22, 2012
    Messages:
    28
    Likes Received:
    3
    Hello,

    Say I have a domain - name.com

    I create a directory at name.com/abc

    Now, I want user to be redirected to another domain when ever user visit the name.com/abc folder, even if user visit name.com/abc/1 which does not exist, but once user reach the abc folder, anything sub-folder in it, user will be redirected, any one know how to do this.

    Thanks
     
  2. RoseDawson

    RoseDawson Newbie

    Joined:
    Apr 22, 2012
    Messages:
    28
    Likes Received:
    3
    Anyone ? Seems like a simple .htaccess code would do it, but which code.

    Thanks