Hi

Ive got drupal all up and working except for one thing. This is the path to my local install:

http://localhost/sites/default/drupal-6.14/index.php/?q=node

i got this working as i was having the common problem where i was having to input the index.php manually as my base url was incorrectly set in the settings file..its now set to this:

$base_url = 'http://localhost/sites/default/drupal-6.14/index.php'; // NO trailing slash!

which means i know dont have to add the index.php manually, however since applying this i lose all graphics, themes. This is because it adds the base path to the url and then the folder path, as so:

"/sites/default/drupal-6.14/index.php/modules/system/system-menus.css?0"

any ideas how i can change this? i can get rid of index.php from the settings.php and regain the themes but then im left with the link issue as before

help please..im sure im not seeing the wood for the trees here,..,

ed

Comments

yelvington’s picture

Remove index.php from the base URL. It should never be there.

If your site won't work without it, the problem is NOT with the base URL, but rather the server configuration.

Your next step should to be sure the server is reading .htaccess and processing its directives. The Drupal .htaccess file instructs the server to use index.php as a 404 error handler and for the directory index.

# Make Drupal handle any 404 errors.
ErrorDocument 404 /index.php

# Force simple error message for requests for non-existent favicon.ico.
<Files favicon.ico>
  # There is no end quote below, for compatibility with Apache 1.3.
  ErrorDocument 404 "The requested file favicon.ico was not found.
</Files>

# Set the default handler.
DirectoryIndex index.php

If you failed to place the .htaccess file in the Drupal directory when you set up your site, you will have the symptoms you described. If your server isn't reading and obeying .htaccess, you also will have these symptoms. Check for the existence of the file first, and if it's missing, fix that. If it's there, proceed to check your webserver configuration.

eddypfunk’s picture

thanks yelvington

i dont think i have the problem with .htaccess file. its in the drupal folder with right settings, so from here it would point at a problem with the httpd.conf file. im going to change the root folder to be the drupal folder...see if that fixes it.

cheers

eddypfunk’s picture

can someone give me an example of the httpd.conf?