Hi,

I've got a problem, but I'm really unsure if it's my fault (probable), or a problem with Drupal (less probable).

My site has always masked the drupal subdirectory, so www.mysite.com/drupal/whatever.html looks like www.mysite.com/whatever.html. I upgraded to Drupal 5.2 yesterday, and this function seems to have stopped working. All links and content are now being displayed as www.mysite.com/drupal/whatever.html.

Now, when I first installed Drupal, I remember changing my my root/.htaccess file to read:

# Taken from http://drupal.org/node/135206
#
RewriteEngine on
#
# stuff to let through (ignore)
#RewriteCond %{REQUEST_URI} "/folder1/" [OR]
#RewriteCond %{REQUEST_URI} "/folder2/"
RewriteRule (.*) drupal/$1 [L]

This hasn't changed. I also edited and uncommented the following line in my sites/default/settings.php file:

$base_url = 'http://www.mysite.com/drupal'; // NO trailing slash!

Is there something else that I've forgotten to do?

I remember struggling to get it to work when I launched my live site back in March, but I neglected to document my steps. What a DONUT!

So, apart from the steps I've done, is there something else I should do to mask the drupal sub-directory? Or is there possibly a problem with my new Drupal install?

I've been looking through handbooks, but can't find anything else, Drupal.org's 'search' seems to be throttled, so I'm a bit stuck...

Any help or pointers much appreciated! :)

- Jim

-----
Drupal 5.2
Apache 2.0.52
PHP 4.4.2
MySQL 4.1.21
-----

Comments

askttt’s picture

Did you receive a respone? I'm in the same boat.

hbar’s picture

No I didn't. I'm still unsure if I missed something or not. :P

Did it happen to you after upgrading Drupal from 5.1 to 5.2?

Are there any other steps I should take that you're aware of, apart from uncommenting the lines in the root/.htaccess file?

Same boat? No paddle? :-)

- Jim

hbar’s picture

Well, I fixed it, and yes, I had made a silly mistake!

The line in settings.php should read:
$base_url = 'http://www.mysite.com';

and not:
$base_url = 'http://www.mysite.com/drupal';

I found the correct info here.

Hope this works for you! :)

- Jim