Solved

How to move Drupal to website root?

Posted on 2010-11-29
9
765 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 24

Expert Comment

by:Alan Henderson
ID: 34231827
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 24

Expert Comment

by:Alan Henderson
ID: 34231847
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
ID: 34231991
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 24

Expert Comment

by:Alan Henderson
ID: 34232239
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
NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

 
LVL 24

Accepted Solution

by:
Alan Henderson earned 500 total points
ID: 34232317
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
ID: 34237633
how about moving all the drupal files and directories to root of site directory
0
 

Author Comment

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

Expert Comment

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

Author Comment

by:greddin
ID: 34242066
Thanks vallis. I had overlooked that link.
0

Featured Post

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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 …
Read about how to choose the best possible content marketing agency to suit your needs. Content marketing has become an integral part of running a successful tech business, so it is wise to be informed.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
A short film showing how OnPage and Connectwise integration works.

919 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

21 Experts available now in Live!

Get 1:1 Help Now