2015-09-20 30 views
-1

在xampp上將typo3的bs_dist擴展安裝後出現問題。我設置了一個空白的typo3安裝,之後安裝了bs_dist擴展。這工作,我可以打電話給該擴展生成的默認頁面。 問題是圖像不顯示在本地typo3安裝時遇到問題

 
default-page url: 
http://localhost/typo3/typo3/index.php?id=1 

image path: 
<img src="/fileadmin/files/welcome.gif" ...> 
= http://localhost/fileadmin/files/welcome.gif  
but there should be written: 
http://localhost/typo3/typo3/fileadmin/files/welcome.gif 
this would work. 

所以如何改變圖片的路徑?

我的文件夾結構:

 
-- htdocs 
    -- another_custom_project 
    -- typo3 
     -- typo3 
     -- fileadmin 
     -- typo3 
     -- ... 
+0

您應該更改添加指向到htdocs/TYPO3/TYPO3文件夾中的域。你需要Apache中的VirtualHost。 –

+0

感謝您的關鍵字 –

回答

1

編輯:這是我在Windows 7解決方案與XAMPP

1)建立在窗戶本地主機的子域:

C:\Windows\System32\drivers\etc\hosts

添加以下,如果將這兩行中的第一行註釋掉,則取消註釋

 
127.0.0.1 localhost 
127.0.0.1 yourVirtualServersName.localhost 

2)告訴Apache路徑應通過增加用於該子域下面以

C:\xampp\apache\conf\extra\httpd-vhosts.conf
 
NameVirtualHost 127.0.0.1:80 

<VirtualHost *:80> 
    DocumentRoot "C:/xampp/htdocs/path/to/your/folder" 
    ServerName yourVirtualServersName.localhost 
    DirectoryIndex index.php 
    ServerAlias www.yourVirtualServersName.localhost 
    <Directory "C:/xampp/htdocs/path/to/your/folder"> 
     AllowOverride All 
     Allow from All 
    </Directory> 
</VirtualHost>