在本地typo3安装时出现路径问题


trouble with paths at local typo3 installation

在xampp安装bs_dist扩展到typo3后,我遇到了一个问题。我设置了一个空白的typo3安装,然后安装了bs_dist扩展。这工作了,我可以调用由该扩展生成的默认页面。问题是没有显示图像

<>之前首页网址:http://localhost/typo3/typo3/index.php?id=1图片路径:= http://localhost/fileadmin/files/welcome.gif但是应该写:http://localhost/typo3/typo3/fileadmin/files/welcome.gif这是可行的。之前

那么如何改变图像的路径呢?

文件夹结构:

<>之前——根——another_custom_project——typo3——typo3——fileadmin——typo3——……

编辑:这是我的解决方案在Windows 7与xampp

1)创建本地主机的子域:

<>前C: ' Windows ' System32系统'司机等' '主机之前

添加以下内容,如果这两行中的第一行被注释掉,取消注释

<>之前127.0.0.1 localhost127.0.0.1 yourVirtualServersName.localhost之前

2)通过在

中添加以下内容来告诉apache该子域应该使用哪个路径<>前C: ' xampp额外' apache ' conf ' ' httpd-vhosts.conf 之前<>之前NameVirtualHost 127.0.0.1:80& lt;虚拟主机*:80比;DocumentRoot"C:/xampp/根/道路//你/文件夹"ServerName yourVirtualServersName.localhostDirectoryIndex index . phpServerAlias www.yourVirtualServersName.localhost& lt;目录"C:/xampp/根/道路//你/文件夹"比;AllowOverride所有允许所有人& lt;/Directory>& lt;/VirtualHost>