Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

How to move Drupal to website root?

Posted on 2010-11-29
9
Medium Priority
?
786 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Survive A High-Traffic Event with Percona

Your application or website rely on your database to deliver information about products and services to your customers. You can’t afford to have your database lose performance, lose availability or become unresponsive – even for just a few minutes.

 
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
 
LVL 24

Accepted Solution

by:
Alan Henderson earned 2000 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

Survive A High-Traffic Event with Percona

Your application or website rely on your database to deliver information about products and services to your customers. You can’t afford to have your database lose performance, lose availability or become unresponsive – even for just a few minutes.

Question has a verified solution.

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

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.
There is a massive demand for content on the web right now, and it doesn't look like it's going to stop any time soon. But, if you are running a business blog, it's not just enough to offer your audience lots of content. It needs to be high-quality…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

722 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