Home
/
Other Applications
/
How can I transfer my Drupal site from a subdirectory to my root folder?

How can I transfer my Drupal site from a subdirectory to my root folder?

This can be done in several easy steps.

  • Change the base dir in your settings.php to point to your root folder (public_html).

You can edit the file from your Site Tools > Site > File Manager in the following way:

– Navigate to your /sites/default directory;
Right-click on the settings.php file and select Edit;

  • Change the RewriteBase dir in your .htaccess file to be /

The contents of your .htaccess file should contain a line like the one below:

RewriteBase /

You can edit this file in the same way as you did with your settings.php file.

  • After that, you should move all the Drupal files which are under your subdirectory to your root (public_html) folder. The best and easiest way to do this is by using an FTP client.

Share This Article