2011-06-30 81 views
0

我已將Drupal 6.19本地安裝在xampp SUBDIRECTORY中。除了圖像被破壞以外,一切都很好。正在創建的路徑缺少安裝Drupal的我的子目錄。Xampp本地Drupal安裝映像路徑問題

路徑應開始:

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

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

我試過設置基地的URL在設置PHP文件,並清除我的緩存:

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

沒有工作。我也試圖在htaccess文件和清除緩存取消註釋這一行:

# RewriteBase /drupal6.19

什麼。

我用盡了想法。任何幫助?

我不會做一個乾淨的安裝,因爲我已經花了很多時間遷移和配置網站的內容。我需要得到這個修正以某種方式...

回答

0

你有沒有改變主機文件中的東西。它位於C:\ Windows \ System32 \ drivers \等。該文件的內容看起來像

# 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