0

I have finished my drupal site and about to launch it in the end. Now everything is in a subdirectory called www.mysite.com/drupal_test, to do that, I had to change one line in the .htaccess file:

uncomment #RewriteBase /drupal 

and change to

RewriteBase /drupal_test

I realised that .htaccess and some of other files in drupal are hidden files. I just blindly uploaded it and can't really see it in the ftp.

Now, I am ready to move everything to the root. I suppose I have to change that line back. But will I lose all the hidden files if I move? I can re-upload .htaccess, but there so many other hidden file that I don't know, will I lose them?

Is there anything else I should do when I move the directory or is there a better/proper way to do so rather than dragging and dropping all the files to the root?

Sorry if the question is stupid, I only have one day left to do this and I am terrified by moving drupal sites.

1

I guess you can upload the new .htaccess file and change back the line #RewriteBase if you have modified only one line of the .htaccess file, there won't be any problem and even if the file exists there it will give you a option to replace.

Few things that you have remember while moving your site to root folder are:

  • Put the site into maintenance mode so that user's posts, comments etc. doesn't gets lost.
  • The #RewriteBase is uncommented when we use the drupal from the subdirectory. So if you are moving it to the root folder than I guess no need to modify this line. (Anyways you try you way also).
  • If you have modified/using the $base_url in setting.php than don't forget it to update as well.log
  • Clear the complete cache, and check the watchdog table data (dblog) at "/admin/reports/dblog" to make no page or anything is having issue.
  • I am not worried about .htaccess because I know it exists and I will upload it again. I am worrying about other hidden files that I am not aware of their existence. Will I lose them? – the_summer_bee Oct 5 '13 at 10:57
  • @the_summer_bee As fas as I know there are only two hidden files in hidden folder, one is .htaccess and another is .gitignore. And you dont need to worry about them as you can anytime upload the hidden file from fresh download of drupal setup – Ankit Agrawal Oct 5 '13 at 11:19
  • It seems that I have screwed something up, the console show the errors like: – the_summer_bee Oct 5 '13 at 14:06
  • GET thesite.com/drupal_test/modules/system/system.base.css?mtn3gy 503 (Service unavailable), so still tried to look for the subdirectory. – the_summer_bee Oct 5 '13 at 14:07
  • 1
    Can you once check the base_url in settings.php file if it is containing value as YOURDOMAIN.com/drupal_test than remove "drupal_test", also it very unlikely that any file contains "drupal_test" as path of file unless you manually have added it. Otherwise it is coming from database only and you would have to update the same in the database only without worrying about this present in any file – Ankit Agrawal Oct 5 '13 at 15:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.