【发布时间】:2017-02-01 14:57:57
【问题描述】:
我将 TYPO3 系统从 live 复制到 localhost,一切都很好,除了我无法打开任何链接,我可以使用 ?id 浏览页面,但不能使用真实路径:
www.myweb_site.com/index.php?id=17 => 有效
www.myweb_site.com/travelling => 不起作用
事情在线。我错过了什么吗???
编辑::
我在我的 apache2 (sudo a2enmod rewrite) 中启动了重写
我的 realurl 扩展已安装。
这是我的 .htaccess
<FilesMatch "\.(js|css)$">
<IfModule mod_expires.c>
ExpiresActive on
ExpiresDefault "access plus 7 days"
</IfModule>
FileETag MTime Size
</FilesMatch>
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)\.(\d+)\.(php|js|css|png|jpg|gif|gzip)$ $1.$3 [L]
RewriteRule ^fileadmin/(.*/)?_recycler_/ - [F]
RewriteRule ^fileadmin/templates/.*(\.txt|\.ts)$ - [F]
RewriteRule ^typo3conf/ext/[^/]+/Resources/Private/ - [F]
^/TYPO3root/(typo3/|fileadmin/|typo3conf/|typo3temp/|uploads/|favicon\.ico) - [L]
RewriteRule ^(typo3/|fileadmin/|typo3conf/|typo3temp/|uploads/|favicon\.ico) - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule .* index.php [L]
</IfModule>
【问题讨论】:
标签: php .htaccess typo3 typo3-6.2.x