<brm/>

How to Find the Absolute Path on Your Web Server

find your web server absolute pathFrom time to time, especially when moving a website from one server to another, I have to find out what the “absolute path” of my website is.  Absolute path pertains to the directory on the server that the website is installed on.

Sometimes when moving a Joomla, WordPress or other website to a different directory or different server you’ll need to change the absolute path for the site to work. In joomla this requires editing the configuration.php file, in WordPress this sometimes requires editing the database or ensuring that you update the settings before moving your files/database over to the new directory/server.

How do I find out what the absolute path is?

The easiest way is to create a file named pathinfo.php and paste only the following code into that file:

<?php
   $path = getcwd();
   echo "Your Absoluthe Path is: ";
   echo $path;
?>

Now, upload pathinfo.php into the root directory of your website and view it in your internet browser ( example: http://www.mysite.com/pathinfo.php )

This will display your absolute path.

Contact / Get a Quote