Xampp本地Drupal安装映像路径问题

时间:2011-06-30 12:13:57

标签: drupal xampp

我已经在xampp SUBDIRECTORY中本地安装了Drupal 6.19。除了图像被破坏之外,一切都很好。正在创建的路径缺少安装Drupal的子目录。

路径应以:

开头

http://localhost/drupal6.19/sites/default/files/

但相反 http://localhost/sites/default/files

我已尝试在设置php文件中设置基本网址并清除缓存:

$base_url = 'http://localhost/drupal6.19';

没用。我还尝试在htaccess文件中取消注释这一行并清除缓存:

# RewriteBase /drupal6.19

没有

我的想法已经不多了。有什么帮助吗?

我不会进行全新安装,因为我已经花了很多时间来迁移内容并配置网站。我需要以某种方式解决这个问题...

1 个答案:

答案 0 :(得分:0)

您是否更改了hosts文件中的内容。它位于C:\ Windows \ System32 \ drivers \ etc。该文件的内容类似于

# Copyright (c) 1993-2009 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
#      102.54.94.97     rhino.acme.com          # source server
#       38.25.63.10     x.acme.com              # x client host

# localhost name resolution is handled within DNS itself.
#   127.0.0.1       localhost
#   ::1             localhost