Path of the Directory?

Discussion in 'Apache' started by stuntman112, Jul 7, 2008.

  1. #1
    I was wondering how do I find the path of my directory so I can use .htaccess.
    Thanks
     
    stuntman112, Jul 7, 2008 IP
  2. pr0t0n

    pr0t0n Well-Known Member

    Messages:
    243
    Likes Received:
    10
    Best Answers:
    10
    Trophy Points:
    128
    #2
    1. If you have ssh access, then just browse to your folder and type:
    pwd
    Code (markup):
    that will provide you with the full path to the folder where you are currently located.
    2. You can try via php script. Open notepad, paste this code into it, save it as some example.php and upload it to your server. Then open it through browser and you'll see the full path to your html folder. Here's the code:
    
    <?php 
    echo getcwd();
    ?>
    
    Code (markup):
     
    pr0t0n, Jul 7, 2008 IP