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.

Newbie question - need to locate a directory

Discussion in 'Apache' started by 1gf, Jul 10, 2014.

  1. #1
    Hi, I need some help in locating a file.

    When I enter my_domain.com the browser displays index.php located in httpdocs on my server. When I enter my_domain.com/main/ the browser displays another page, but there's no directory "main" in my httpdocs. Somehow it's redirected to another location (but in URL bar in the browser it's still my_comain.com/main/). I need to find that location.

    As I searched through the web, such redirection can be made in .htaccess file, but I can't locate this one either. My server is Apache on CentOS6, and httpdocs directory is located in /var/www/vhosts/my_domain.com. I searched for .htaccess in several locations that I googled, I also tried executing "find / -type d -name '.htaccess'" on PuTTy, but it gives no results.

    Thank you for any suggestions.
     
    1gf, Jul 10, 2014 IP
  2. 1gf

    1gf Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    1
    #2
    OK, I located .htaccess. But there's nothing about this "main" directory in it. Where else could this redirection have been made?
     
    1gf, Jul 10, 2014 IP
  3. Aleks5

    Aleks5 Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    1
    #3
    it could be in httpd file if i'm not mistaken - Apache config file
     
    Aleks5, Jul 14, 2014 IP