Change Document Root


Revision as of 16:26, 3 May 2017 by Wikiadmin (talk | contribs) (Created page with "If your using a framework such as [https://laravel.com Laravel], [http://drupal.org Drupal], [http://codeigniter.com CodeIgniter] or even a CMS such as Wordpress. It is often...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

If your using a framework such as Laravel, Drupal, CodeIgniter or even a CMS such as Wordpress. It is often a requirement that your websites framework be in a directory above your public directory.

In most cases, adding an .htaccess file to the root of your websites directory will be sufficient in directing the browser to where your files are. However, if the .htaccess route does not work, you will need a way to update your websites document root.

To update your document root for your website, you will want to make sure you are logged into your Bravenet account. Once logged into your Bravenet account, you will want to follow these steps:

  1. Click on the Web Hosting tab/link located within the top blue navigation bar.
  2. Click on the name of the website you would like to manage; or click on the Manage link located to the right of the websites name.
  3. Under the Files section, click Set Document Root

File:WebsiteSetDocumentRoot.jpg

Once the document root is set for your domain, it is automatically updated on your live website.

Please Note: When updating your document root, please ensure that you move our error pages into the newly assigned folder if you would like to use our error pages.