mardi 16 juin 2015

realurl auf 1und1 - nur Probleme

Hallo, ich weiß dass 1und1 kein guter Hoster für Typo3 ist und es nie sein wird. Trotz allem habe ich einen Kunden, der bei diesem Hoster eine Seite hat.
Jetzt muss ich seine urls schön bekommen, d.h. realURL installieren. Überall im Internet ist zu lesen, dass das entweder auf Anhieb läuft, oder gar nicht zum laufen zu kriegen ist.

Mein Problem ist, dass die Startseite ganz normal angezeigt wird und alle Unterseiten einen 500-er Fehler ausgeben.
Nach langem suchen konnte ich feststellen, dass es nur an meiner .htaccess liegt.
Hier die aktuelle .htaccess:
PHP-Code:

<FilesMatch "\.(js|css)$">
  <
IfModule mod_expires.c>
    
ExpiresActive on
    ExpiresDefault 
"access plus 7 days"
  
</IfModule>
  
FileETag MTime Size
</FilesMatch>

<
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.$[L]

# Basic security checks
# - Restrict access to deleted files in Recycler directories
# - Restrict access to TypoScript files in default templates directories
# - Restrict access to Private extension directories
# For httpd.conf, use these lines instead of the next ones:
# RewriteRule ^/TYPO3root/fileadmin/(.*/)?_recycler_/ - [F]
# RewriteRule ^/TYPO3root/fileadmin/templates/.*(\.txt|\.ts)$ - [F]
# RewriteRule ^/TYPO3root/typo3conf/ext/[^/]+/Resources/Private/ - [F]
RewriteRule ^fileadmin/(.*/)?_recycler_/ - [F]
RewriteRule ^fileadmin/templates/.*(\.txt|\.ts)$ - [F]
RewriteRule ^typo3conf/ext/[^/]+/Resources/Private/ - [F]

# 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://ift.tt/1GK3VJB.
# For httpd.conf, use this line instead of the next one:
# RewriteRule ^/TYPO3root/typo3$ /TYPO3root/typo3/index.php [L]
RewriteRule ^typo3typo3/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 ### 

Das paradoxe daran ist, dass das realURL beim anderen Kunden mit diesen Einstellungen bei 1und1 gut funktioniert. Der einzige unterschied zwischen den Kunden ist, dass die Typo3 Installation bei dem ersten Kunden in einem Ordner installiert ist.

Nun habe ich leider nicht viel Ahnung von Apache-Einstellungen über .htaccess, deshalb hoffe ich auf eure Hilfe, bevor ich das ganze Projekt zu Mittwald umziehe um realURL ans laufen zu bringen.

Wo liegt das Problem?


realurl auf 1und1 - nur Probleme

Aucun commentaire:

Enregistrer un commentaire