[Typo3-german] rewrite rule

Stefan Rattay stefan at withoutemotions.com
Tue Dec 13 20:02:14 CET 2005


Hi Liste,

könnte sich einer mal meine .htaccess ansehen? Ich glaub ich seh den 
Wald vor lauter Bäumen nicht mehr. Mein error_log gibt folgendes aus:

[Tue Dec 13 19:58:34 2005] [error] [client 127.0.0.1] File does not 
exist: /var/www/htdocs/typo3/stadtinfo, referer: http:/
/typo3.localhost/index.php?id=44


ich generiere per RealUrl nachfolgenden Link:

http://typo3.localhost/stadtinfo/stadtteile.html

Somit gehe ich davon aus, dass die RealUrl-Seite sauber funktioniert und 
glaube, dass es an meiner .htaccess liegt. Die sieht folgendermassen aus:

Bedanke mich lieber schon mal hier für eure Hilfe!

Danke und

Gruss stefan


----------------------------------------------------------------

# Enable URL rewriting
RewriteEngine On
# If you use the RealUrl extension, then you'll have to enable the next 
line.
# You will have to change this path if your TYPO3 installation is located
# in a subdirectory of the website root.
#
# If you place this in httpd.conf, you cannot use this directive in any 
case!
RewriteBase /
# Stop rewrite processing if we are in the typo3/ directory
# For httpd.conf, use this line instead of the next one:
# RewriteRule 
^/TYPO3root/(typo3|typo3temp|typo3conf|t3lib|tslib|fileadmin|uploads|showpic\.php)/ 
- [L]
RewriteRule 
^(typo3|typo3temp|typo3conf|t3lib|tslib|fileadmin|uploads|showpic\.php)/ 
- [L]
# Redirect http://mysite/typo3 to http://mysite/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 ^/TYPO3root/typo3$ /TYPO3root/typo3/index.html [L]
# RewriteRule ^typo3$ typo3/index_re.php [L]
# If the file/symlink/directory does not exist => Redirect to index.php
# Important note: If you copy/paste this into httpd.conf instead
# of .htaccess you will need to add '%{DOCUMENT_ROOT}' left to each
# '%{REQUEST_FILENAME}' part.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
# Main URL rewriting.
# The example shows how to rewrite only *.html and *.pdf files to index.php
# This may be helpful when using an extension that can generate PDF files
# on the fly.
# Example: RewriteRule .*\.(html|pdf)$ index.php [L]
# For httpd.conf, use this line instead of the next one that has no '#':
# RewriteRule .* /TYPO3root/index.php [L]
# For use with the RealUrl extension, you might need to remove the
# RewriteBase directive somewhere above and use this line instead of the
# next one:
RewriteRule .* /index.php [L]
### End: Rewrite stuff ###



More information about the TYPO3-german mailing list