Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/typo3/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
将TYPO3 FAL存储装载到另一个域_Typo3 - Fatal编程技术网

将TYPO3 FAL存储装载到另一个域

将TYPO3 FAL存储装载到另一个域,typo3,Typo3,使用TYPO3 6.1.9(将很快更新为最新的6.2) 当前是否可以将FAL存储与其他域一起使用?Web空间如下所示: path-to-web-directories/ - maindomain.com/ - - fileadmin/ - - typo3/ - sub.domain.com/ - - files.txt http://www.maindomain.com/sub.domain.com/files.txt 在TYPO3后端中,我为web目录/maindomain.com/fil

使用TYPO3 6.1.9(将很快更新为最新的6.2)

当前是否可以将FAL存储与其他域一起使用?Web空间如下所示:

path-to-web-directories/
- maindomain.com/
- - fileadmin/
- - typo3/
- sub.domain.com/
- - files.txt
http://www.maindomain.com/sub.domain.com/files.txt
在TYPO3后端中,我为web目录/maindomain.com/fileadmin/的路径创建了一个文件存储,并为web目录/sub.domain.com/的路径创建了一个文件存储。这真的很好,到目前为止效果不错。我可以管理两个存储中的文件

但是现在,如果我设置一个指向sub.domain.com中文件的链接,URL如下所示:

path-to-web-directories/
- maindomain.com/
- - fileadmin/
- - typo3/
- sub.domain.com/
- - files.txt
http://www.maindomain.com/sub.domain.com/files.txt
而不是

http://sub.domain.com/files.txt

这个问题是TYPO3的一部分吗?或者我可以用realUrl(我正在使用的)来配置它吗?我该怎么做呢?

我解决了这个问题:

URL是在类TYPO3\CMS\Core\Resource\Driver\LocalDriver->getPublicUrl中生成的 在这种情况下,需要具有新资源驱动程序的自己的扩展