The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Sub Folder Redirects

Discussion in 'General Discussion' started by jackal, Jun 11, 2005.

  1. jackal

    jackal Well-Known Member
    PartnerNOC

    Joined:
    Feb 23, 2002
    Messages:
    708
    Likes Received:
    0
    Trophy Points:
    16
    Wondering if anyone could answer a question

    I have a site like domain.com under that I have a folder called test so something like this
    domain.com/test/

    Now both domain.com and also the dir test under it have the same files under each of them.
    How would I setup a redirect maybe in htaccess or rule that when someone would type in for example domain.com/test/me.html it would redirect them to domain.com./me.html
    I know I can setup redirects in cpanel, but how would I have setup one rule in htaccess to redirect all names in the test folder to the same names in the root folder?

    Any ideas?
     
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
Loading...

Share This Page