1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Directory Problem

Discussion in 'Directories' started by Yfcadmin, Apr 26, 2007.

  1. #1
    Hi,
    I have installed a directory on sub-domain of my site. YahooFanClub.
    So the directory url is:

    dir.mydomainname.com

    now the problem is Google is indexing pages from

    mydomainname.com/dir

    is there a way to stop it. I mean anyway I can redirect anything that goes to mydomainname.com/dir to dir.mydomainame.com ...

    Please help me its really annoying. Thanx in advance.
     
    Yfcadmin, Apr 26, 2007 IP
  2. Richie_Ni

    Richie_Ni Illustrious Member

    Messages:
    10,721
    Likes Received:
    1,175
    Best Answers:
    0
    Trophy Points:
    410
    #2
    Really?
    So there's a directory located in mydomainname.com/dir as well?
     
    Richie_Ni, Apr 26, 2007 IP
  3. terryuk

    terryuk Notable Member

    Messages:
    3,962
    Likes Received:
    319
    Best Answers:
    0
    Trophy Points:
    255
    #3
    Try adding this to your HTaccess file;

    Options +FollowSymlinks
    RewriteEngine on
    rewritecond %{http_host} ^www.domain.com/dir [nc]
    rewriterule ^(.*)$ http://dir.domain.com/$1 [r=301,nc]

    Hopefully it'll work for you
     
    terryuk, Apr 26, 2007 IP
  4. Yfcadmin

    Yfcadmin Notable Member

    Messages:
    2,616
    Likes Received:
    331
    Best Answers:
    0
    Trophy Points:
    230
    #4
    Yes there is a directory in there. :)

    So terryuk ... all I need to do is replace domain.com with my site address:
    www.yahoofanclub.com

    coz I am a little dumb in Rewrite rules. also tell me if I put this code in root .htaccess file or in the /dir .htaccess file ??

    Thanx again man ;)
     
    Yfcadmin, Apr 26, 2007 IP
  5. terryuk

    terryuk Notable Member

    Messages:
    3,962
    Likes Received:
    319
    Best Answers:
    0
    Trophy Points:
    255
    #5
    Replace the domain.com with your domain of course, and try uploading it to the root of your account.. that was only a suggestion.. if it doesn't work take it out and forget i ever said anything lol :D
     
    terryuk, Apr 26, 2007 IP
    Yfcadmin likes this.
  6. Yfcadmin

    Yfcadmin Notable Member

    Messages:
    2,616
    Likes Received:
    331
    Best Answers:
    0
    Trophy Points:
    230
    #6
    Nope it didnt work. Thanx terryUk .. Can anyone help me.
     
    Yfcadmin, Apr 27, 2007 IP
  7. Yfcadmin

    Yfcadmin Notable Member

    Messages:
    2,616
    Likes Received:
    331
    Best Answers:
    0
    Trophy Points:
    230
    #7
    This is really important. Google is crawling wrong pages each day please help me out :(


    I dont know why Mods gave me infraction for this bumping .... I really need help.
     
    Yfcadmin, Apr 30, 2007 IP