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.

Problem with server folder displaying

Discussion in 'General Discussion' started by najunni, Dec 18, 2012.

  1. najunni

    najunni Registered

    Joined:
    Feb 16, 2009
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Hi,

    I have a problem with server displaying. I am using Cpanle and I have set a domanin, lets call it domainone.com

    On the server I have running 10 different websites. I have a problem with folder displaying, when I type my root server domain (domainone.com), I get some results of my stored domain in the server, exmp:

    domainone.com/domaintwo.eu
    domainone.com/domainfive.com/plugin/rokbox
    domainone.com/domainsix.com/images
    domainone.com/ecc

    I have also try to block this folder on the server with password, but when I am doing that, the websites don't show, It will type the password to enter.

    Now my question is, how can I set, that the my root domain name will be invisible, and google do not index my website folder on the server?

    Thanks for your answers and best regards.
     
  2. mtindor

    mtindor Well-Known Member

    Joined:
    Sep 14, 2004
    Messages:
    1,281
    Likes Received:
    37
    Trophy Points:
    48
    Location:
    inside a catfish
    cPanel Access Level:
    Root Administrator
    1a. Put a blank index.html in your public_html

    and/or

    1b. You could add an .htaccess file in public_html containing:

    Options -Indexes

    or

    1c. You could just log into your /cpanel, go to Advanced, select Index Manager and disable indexing on one or more directories. [This will add the -Indexes option in an .htaccess file in that particular directory]

    2. Then add a robots.txt in your public_html with the following:

    User-agent: *
    Disallow: /

    M
     
Loading...

Share This Page