WAMP 시스템에서 TYPO3을 사용하려고하는데 재 작성된 URL에 문제가 있습니다. "시작하기"웹 사이트가있는 소개 패키지를 설치했습니다. 매번 난 다음 중 하나를 통해 웹 사이트에 액세스하려고 : 이 /가 이 /가 /이 은 /는 /이 /가 URL이 로컬 호스트 /이 /가-시작 TYPO3된다 GET-시작Mod Rewrite : 다시 쓰고 있지만 링크를 찾을 수 없습니다.
을 index.php를 TYPO3 로컬 호스트의 index.php TYPO3 로컬 호스트 TYPO3 로컬 호스트
괜찮습니까? mod_rewrite가 작동 중이며 작동 중입니다. 문제는 내가 localhost/typo3/get-started 사이트를 볼 수없고 대신 "Object not found"페이지가 있다는 것입니다.
동일한 기계에서 Symfony 1.4와 동일한 문제가 발생하지만 Symfony에서 frontend_dev.php 페이지를 사용하여 사이트에 액세스 할 수 있기 때문에 신경 쓰지 않았습니다. (제작 환경에서 재 작성된 URL은 정상적으로 작동합니다.)
이
는 TYPO3 디렉토리는 httpd.conf 항목입니다 :Alias /typo3 "C:\workspace\typo3"
<Directory "C:\workspace\typo3">
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
Allow from all
</Directory>
그리고이 htaccess로 파일입니다합니다 (TYPO3 패키지 안에 이미 내가 수정하지 않은 경우), 내가 제거 한 비 관련 부품
### Begin: Settings for mod_rewrite ###
# You need rewriting, if you use a URL-Rewriting extension (RealURL, CoolUri, SimulateStatic).
<IfModule mod_rewrite.c>
# Enable URL rewriting
RewriteEngine On
# Change this path, if your TYPO3 installation is located in a subdirectory of the website root.
#RewriteBase/
# Rule for versioned static files, configured through:
# - $TYPO3_CONF_VARS['BE']['versionNumberInFilename']
# - $TYPO3_CONF_VARS['FE']['versionNumberInFilename']
# IMPORTANT: This rule has to be the very first RewriteCond in order to work!
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)\.(\d+)\.(php|js|css|png|jpg|gif|gzip)$ $1.$3 [L]
# Stop rewrite processing, if we are in the typo3/ directory.
# For httpd.conf, use this line instead of the next one:
# RewriteRule ^/TYPO3root/(typo3/|t3lib/|fileadmin/|typo3conf/|typo3temp/|uploads/|favicon\.ico) - [L]
RewriteRule ^(typo3/|t3lib/|fileadmin/|typo3conf/|typo3temp/|uploads/|favicon\.ico) - [L]
# Redirect http://example.com/typo3 to http://example.com/typo3/index_re.php and stop the rewrite processing.
# For httpd.conf, use this line instead of the next one:
# RewriteRule ^/TYPO3root/typo3$ /TYPO3root/typo3/index.php [L]
RewriteRule ^typo3$ typo3/index_re.php [L]
# If the file/symlink/directory does not exist => Redirect to index.php.
# For httpd.conf, you need to prefix each '%{REQUEST_FILENAME}' with '%{DOCUMENT_ROOT}'.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
# Main URL rewriting.
# For httpd.conf, use this line instead of the next one:
# RewriteRule .* /TYPO3root/index.php [L]
RewriteRule .* index.php [L]
</IfModule>
### End: Settings for mod_rewrite ###