By Fuzzbucket on
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
is drupal actually installed
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.
Yes
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?
yes
yes
I've seen mention of
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!)
As promised:
As promised: http://drupal.org/node/135206
htaccess
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
I put that in my webserver's
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.
Thanks. I installed drupal
Thanks.
I installed drupal in /drupal/ folder.
How to remove the /drupal/ portion from the url?
More here
More here http://drupal.org/node/22336
What I say above is what
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.
Is there a way to remove the
Is there a way to remove the /drupal/ portion from the url?
directory setting
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.