Just in the past day drupal has decided it wants to be in my URL (yes - I know - drupal didn't decide anything - I surely mussed something up).

Right now my URL shows up as http://mysite/drupal/admin/themes (as an example).

The path to my site is x:\www\drupal\sites\mysite

I am sure I did something here - but I can not find it. BTW - this is sporadic. It will go fine (without the word Drupal in my address) for a few minutes and then when I navigate somewhere else it is back.

Thank you in advance.

- SZ

Comments

vm’s picture

is drupal actually installed in the subdirectory drupal ? if so you will need some .htaccess magic, or drupal install in the root rather than in a subdirectory.

Fuzzbucket’s picture

This is the way it came down with the Web Developer package. I am actually going to move it over to my hosting company today. I take it that I should not have drupal in a folder under my html_public folder on my provider, but rather install drupal in teh root of the html_public folder. That will at least solve the problem on my public site - correct?

vm’s picture

yes

joachim’s picture

I've seen mention of htaccess magic to do this on the forum before... I've been hunting in the apache manual but the attempts I made failed.

Any chance someone could give the details of this htaccess magic? :)

(If it's an incentive, I promise to add it to a handbook page!)

joachim’s picture

bpocanada’s picture

Maybe this will help to bypass a directory within from drupal.. It assumes that you have CLEAN URL enabled.

=========[ start of .htaccess snippet]==========

RewriteEngine on
#
# stuff to let through (ignore)
RewriteCond %{REQUEST_URI} "/folder1/" [OR]
RewriteCond %{REQUEST_URI} "/folder2/"
RewriteRule (.*) $1 [L]
#
====================[ end ]=====================

--
Roshan Shah
T : 604-630-4292
Vancouver, Canada
Skype/GoogleTalk/Yahoo : bpocanada

joachim’s picture

I put that in my webserver's root directory, and that just got me an error...

Here's what worked:
=========[ start of .htaccess snippet]==========
RewriteEngine on
#
# stuff to let through (ignore)
#RewriteCond %{REQUEST_URI} "/folder1/" [OR]
#RewriteCond %{REQUEST_URI} "/folder2/"
RewriteRule (.*) drupal5/$1 [L]
====================[ end ]=====================

I commented out the RewriteConds, as there's currently nothing else I want to let through once my drupal goes live.
Replace 'drupal5' with the folder name in which your drupal is.

Success’s picture

Thanks.

I installed drupal in /drupal/ folder.

How to remove the /drupal/ portion from the url?

Success’s picture

joachim’s picture

What I say above is what worked for me -- create a file called .htaccess in your webserver's root folder. Paste that code above into it.

Success’s picture

Is there a way to remove the /drupal/ portion from the url?

twood’s picture

I found this to work:

create an .htaccess file by writing this in a text editor:

DirectoryIndex drupal/index.php

Save it to your htdocs or httpdocs directory as ".htaccess" (as ASCII)

It worked for me. Consult your host company if you have a problem or don't know about your server.