简体   繁体   English

为什么TYPO3 Realurl可以工作但是找不到页面

[英]Why TYPO3 Realurl works but page not found

We installed realurl 2.2.0 in TYPO3 8.7 LTS. 我们在TYPO3 8.7 LTS中安装了realurl 2.2.0。 The default TYPO3 .htaccess file is copied to the index folder and we use the following settings (domain replaced): 默认的TYPO3 .htaccess文件已复制到索引文件夹,并且我们使用以下设置(已替换域):

vhost: 虚拟主机:

<VirtualHost *:80>
    ServerName    example.com
    DocumentRoot  /var/www/examplecom/htdocs
    <Directory /var/www/examplecom/htdocs/>
        Options Indexes FollowSymLinks MultiViews
        AllowOverride All
        Order allow,deny
        allow from all
    </Directory>
</VirtualHost>

Typoscript: 打字稿:

config.tx_realurl_enable = 1
config.simulateStaticDocuments = 0
config.baseURL = http://example.com/

Realurl is set to automatic. Realurl设置为自动。 Server runs with php 7.0 and Apache 2. 服务器与php 7.0和Apache 2一起运行。

The links in the generated HMENU works properly. 生成的HMENU中的链接正常工作。 But when I click on one of the navigation elements a 404 page not found message appears. 但是,当我单击导航元素之一时,会出现404页面未找到的消息。 Why is that? 这是为什么? How to fix? 怎么修?

解决方案是启用apache模块重写:

a2enmod rewrite

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM