要解决Apache和TYPO3无法加载除主页和后台以外的页面的问题,您可以按照以下步骤进行操作。
检查Apache配置文件:
LoadModule rewrite_module modules/mod_rewrite.so
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
检查TYPO3配置:
'SYS' => [
'compat_version' => '7.6',
'encryptionKey' => 'your_encryption_key',
'sitename' => 'Your TYPO3 Site',
'enableDeprecationLog' => 'file',
'systemLogLevel' => '2',
'systemMaintainers' => [
'1',
],
],
清除TYPO3缓存:
php /path/to/your/typo3/installation/typo3/sysext/core/bin/typo3cms cache:flush
php /path/to/your/typo3/installation/bin/typo3cms cache:flush
重建TYPO3索引:
php /path/to/your/typo3/installation/typo3/sysext/core/bin/typo3cms index:rebuild
php /path/to/your/typo3/installation/bin/typo3cms index:rebuild
重新加载您的网站并检查是否能够加载除主页和后台以外的页面。