Greetings everybody,

I am just now entering the world of Drupal and thus far am blown away by both the power of it as well as the power of the community. I've found pretty much every answer I've needed from old discussions, but my current question continues to puzzle me. I imagine the answer is staring me in the face but I just haven't phrased it correctly yet.

How would one go about removing the "/drupal" from the end of the url? Is it a large task to go from www.mysite.com/drupal to simply www.mysite.com? Is it as easy as moving the files around on my server or are there files that I specifically need to manipulate? I'm currently running Drupal 5.x.

Thank you very much for your time.

Comments

djmarlon’s picture

I would like to know about this as well. I want to remove the drupal logo from the main page.

russic’s picture

The logo can be removed by going to administer --> themes --> configure

There should be a box that you can uncheck to remove the logo.

styro’s picture

But there can be a few gotchas depending on how you've created your content and set your site up. eg if you've hard coded links inside any content, those links will be broken etc.

--
Anton
New to Drupal? | Troubleshooting FAQ
Example knowledge base built with Drupal

russic’s picture

Thank you for the response. My site at this point is neither big nor complex so losing all my links would be no concern to me. I'm fully prepared to start from scratch!

styro’s picture

If you have set a $base_url variable in your settings.php file to match your subdirectory, or the RewriteBase directive in your .htaccess file to get clean urls working, then you should adjust those.

But it is likely that your site hasn't changed those, so you're probably OK.

Note: having a test site lets you just try it. Nothing can match actually trying stuff on a replica of your own site for answering questions like this. Also researching fixes for any little issues that crop up on a test site is much less stressful than when it happens on your live site :)

--
Anton
New to Drupal? | Troubleshooting FAQ
Example knowledge base built with Drupal

Squirrelly’s picture

Thanks, $base_url was exactly what I was looking for. I knew I had done it on another site, but couldn't remember how.

psampaz’s picture

where does www.yoursite.com points to?

I think you just have installed drupal on a subdirectory.
try moving the files in the root directory

schneider707’s picture

Most servers have a directory called "public_html." The reason why your site is www.yoursite.com/drupal, is because you have your entire drupal installation inside a folder called "drupal" which is inside "public_html." The fix? Just simply remove files from your drupal folder and place them straight into "public_html." Now that will allow your site to be accessed without the subdirectory "/drupal"

*Note this will break some (if not all) of your links. Everything else should be fine*

Squirrelly’s picture

That is correct. Though actually I find advantages to keeping a sub folder.

When I need to upgrade to a new version of Drupal, I just unpack it in my public_html folder, copy over settings.php and other files from the old directory, make any adjustments (like the name of a new copy of the db), and then when I'm set just redirect the 'drupal' sym-link to the new folder.

And also a .htaccess file to invisibly redirect queries to the drupal folder. That's what I needed the $base_url for, so Drupal didn't try sticking it back in when it's not needed.

That makes it cleaner and easier to change, and minimizes the time I have to have the site offline (as I can still have it up the entire time I'm setting up the new directory). Plus if everything goes epic fail after the change, I just redirect the 'drupal' link back to the old folder, and instant magic, everything is back to how it was immediately.