2

Using relative links when Drupal is installed in subdirectory

http://drupal.org

Hi everyone,

I have drupal installed in a subdirectory on my server, let's say in localhost/subdir

When I write a link with a target like "/about", it goes to http://localhost/about, rather than http://localhost/subdir/about. This is the problem. Here are the steps I've taken:

I have uncommented the line in .htaccess to say:

RewriteBase /subdir

I have also uncommented the line in settings.php to say:

$base_url = 'http://localhost/subdir';

I've restarted my server, and cleared all the caches..... Not sure where to go from here.

This seems like something a lot of people probably do all the time. Help please?

Read »
Created by Caleb 1 year 44 weeks ago
Category: News   Tags:

PSD to Drupal Theme

Drupal Development

Module Development

Get an Estimate

Tags for Using relative links when Drupal is installed in subdirectory

Recent comments