【问题标题】:Xampp local Drupal install image path problemsXampp本地Drupal安装镜像路径问题
【发布时间】:2011-09-25 22:42:11
【问题描述】:

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

路径应以:

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

但是是 http://localhost/sites/default/files.

我已经尝试在设置 php 文件中设置基本 url 并清除我的缓存:

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

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

# RewriteBase /drupal6.19

什么都没有。

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

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

【问题讨论】:

    标签: drupal xampp


    【解决方案1】:

    您是否更改了主机文件中的某些内容。它位于 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
    

    【讨论】:

      猜你喜欢
      • 2012-03-04
      • 1970-01-01
      • 1970-01-01
      • 2013-10-06
      • 2019-02-06
      • 2016-12-01
      • 1970-01-01
      • 1970-01-01
      • 2011-07-19
      相关资源
      最近更新 更多