.htaccess - adding absolute path


I am trying to install a BBClone stat counter application and the easiest way for me to complete the install is add an absolute path to one .php file and one .htaccess file.

How do I write out an abolsute path for a dreamhost account?


Dreamhost paths are expressed just like any other *nix system.

The way you write the path depends upon where the file is in your directory structure. Assuming your php and .htacces files are accessible to the web your path will look something like this:

/home/yourusername/yourdomainname.tld/directorycontainingthefile/thefile.php (or .htaccess).

yourusername = your machine user name

yourdomainname.tld = your domain name plus the "Top Level Domain (.com, .net, .org) or "whatever directory you told the system to host your domain from when you added the domain in the panel.

directorycontainingthefile = the directory where the file you are tryhing to write the path to is stored (this may not be needed at all if you are storing the file in the “yourdomainname.tld” directory).

thefile.php - the actual full name of the file



An absolute path would be something along the lines of:


If you’ll log into the control panel, navigate to Domains > Manage Domains, and click on Edit, you’ll see your exact path.