Solved

How to move Drupal to website root?

Posted on 2010-11-29
9
764 Views
Last Modified: 2012-05-10
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
0
Comment
Question by:greddin
  • 5
  • 3
9 Comments
 
LVL 23

Expert Comment

by:Alan Henderson
Comment Utility
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
0
 
LVL 23

Expert Comment

by:Alan Henderson
Comment Utility
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.
0
 

Author Comment

by:greddin
Comment Utility
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?
0
 
LVL 23

Expert Comment

by:Alan Henderson
Comment Utility
I haven't done it, but I believe you can use the 302 redirect to do that:
http://www.internetofficer.com/seo/302-redirect/
0
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
LVL 23

Accepted Solution

by:
Alan Henderson earned 500 total points
Comment Utility
I've read that 302 redirects have potential issues with different search engines. Maybe not such a good idea.

This page tells you how to move Drupal to root directory if you prefer. It's quite easy:
http://tekrum.net/drupal-6-how-to-transfer-drupal-site-from-sub-directory-to-root

Needless to say, a full backup would be advisable.

:)
0
 
LVL 12

Expert Comment

by:sivagnanam chandrakanth
Comment Utility
how about moving all the drupal files and directories to root of site directory
0
 

Author Comment

by:greddin
Comment Utility
Is it as simple as coping the drupal directories and files to the root without having to modify a config file somewhere?
0
 
LVL 23

Expert Comment

by:Alan Henderson
Comment Utility
You need to edit settings.php as described in the link I gave above.
0
 

Author Comment

by:greddin
Comment Utility
Thanks vallis. I had overlooked that link.
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Suggested Solutions

RTL (right to left) web applications aiming for audiences speaking languages like Hebrew or Arabic, are generally more complicated than the same applications aiming for audiences speaking Latin based languages. The main difference lies of course …
This script checks a path to see if a folder exists. If the folder does exist you will get output "The folder has previously been created. No action taken" If not it will create the folder. Then adds one user modify permission to the folder. It …
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now