Link to home
Start Free TrialLog in
Avatar of greddin
greddinFlag for United States of America

asked on

How to move Drupal to website root?

A few weeks ago I used the GoDaddy application manager to install Drupal 6.19 to a "/drupal" directory. So my Drupal site is accessed like this http://www.mysite.com/drupal.  Is it possible to move the /drupal directory to the site root so that it can be accessed like http://www.mysite.com?

Thanks,
-Greg
Avatar of Alan Henderson
Alan Henderson
Flag of New Zealand image

It's easier to create an .htaccess file in the root of your server with this text in it:

redirect 301 /index.html /drupal/index.php

http://www.webconfs.com/how-to-redirect-a-webpage.php
Apart from saving you the trouble of moving your Drupal installation the 301 Redirect gives you flexibility. You can change your mind later if you wish to install another CMS or a conventional home page.
Avatar of greddin

ASKER

The redirect will still show the "/drupal" in the url correct? Is there a way to redirect while not showing the "/drupal" in the url?
I haven't done it, but I believe you can use the 302 redirect to do that:
http://www.internetofficer.com/seo/302-redirect/
ASKER CERTIFIED SOLUTION
Avatar of Alan Henderson
Alan Henderson
Flag of New Zealand image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
how about moving all the drupal files and directories to root of site directory
Avatar of greddin

ASKER

Is it as simple as coping the drupal directories and files to the root without having to modify a config file somewhere?
You need to edit settings.php as described in the link I gave above.
Avatar of greddin

ASKER

Thanks vallis. I had overlooked that link.