【发布时间】:2017-04-17 02:01:16
【问题描述】:
我们在 TYPO3 8.7 LTS 中安装了 realurl 2.2.0。默认的 TYPO3 .htaccess 文件被复制到索引文件夹,我们使用以下设置(域替换):
虚拟主机:
<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>
排版:
config.tx_realurl_enable = 1
config.simulateStaticDocuments = 0
config.baseURL = http://example.com/
Realurl 设置为自动。 服务器运行 php 7.0 和 Apache 2。
生成的 HMENU 中的链接可以正常工作。但是,当我单击其中一个导航元素时,会出现 404 page not found 消息。这是为什么?如何解决?
【问题讨论】:
-
apache 模块 mod_rewrite 是否激活?
标签: .htaccess apache2 typo3 realurl