.htaccess 为什么TYPO3 Realurl有效但找不到页面

.htaccess 为什么TYPO3 Realurl有效但找不到页面,.htaccess,apache2,typo3,realurl,.htaccess,Apache2,Typo3,Realurl,我们在TYPO3 8.7 LTS中安装了realurl 2.2.0。默认的TYPO3.htaccess文件被复制到索引文件夹,我们使用以下设置(域替换): vhost: <VirtualHost *:80> ServerName example.com DocumentRoot /var/www/examplecom/htdocs <Directory /var/www/examplecom/htdocs/> Options

我们在TYPO3 8.7 LTS中安装了realurl 2.2.0。默认的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>
Realurl设置为自动。 服务器使用PHP7.0和Apache2运行


生成的Humenu中的链接工作正常。但当我点击其中一个导航元素时,会出现一条404页面未找到的消息。为什么呢?如何修复?

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

a2enmod rewrite

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

a2enmod rewrite

apache模块mod_rewrite是否处于活动状态?apache模块mod_rewrite是否处于活动状态?