-
JavaScript bei 1und1
Hallo liebe Community,
ich habe soeben eine Webseite bei 1und1 online gestellt, alle Einstellungen in der .htaccess vorgenommen und die Seite soweit auch zum Laufen bekommen.
Allerdings habe ich auf der Startseite eine Slideshow2, die bei mir auf dem lokalen Rechner super läuft, aber auf dem 1und1-Server nicht mehr. Außerdem kann ich im BE, diese Gruppierungen nicht mehr schließen und öffnen. Das riecht irgendwie nach einem JavaScript-Problem, auch wenn ja eigentlich das Client-Aufgabe ist. Auflösung der .js habe ich auch in die .htaccess geschrieben.
Vielleicht ein Link zu der Seite: http://www.dibiko.de/betaversion/.
Und meine .htaccess
Code:
AddHandler x-mapp-php5 .php
AddType x-mapp-php5 .php
<IfModule mod_rewrite.c>
RewriteEngine On
##
# Rewrite base
#
# Set the RewriteBase if your TYPOlight installation is in a subdirectoy and
# the rewrite rules are not working properly. Usage examples:
#
# RewriteBase /typolight-2.8.0
# RewriteBase /path/to/typolight
#
# Add your own RewriteBase after this comment.
##
##
# Malicious requests
#
# TYPOlight usually does not pass absolute URLs via GET, therefore the
# following rules block all requests that try to pass a URL or the /etc/
# directory as parameter.
##
RewriteCond %{REQUEST_URI} (ftp|https?):|/etc/ [NC,OR]
RewriteCond %{QUERY_STRING} (ftp|https?):|/etc/ [NC]
RewriteRule .* - [F,L]
##
# Compressed .js and .css files
#
# Most of the JavaScript and CSS files used in TYPOlight are also available
# as compressed .gz version, which requires less bandwidth and optimizes the
# page loading time. The following rules load these compressed ressources.
##
AddEncoding gzip .gz
AddType "text/javascript" .gz
AddType "text/css" .gz
RewriteCond %{HTTP:Accept-encoding} gzip
RewriteCond %{REQUEST_FILENAME} \.(js|css)$
RewriteCond %{REQUEST_FILENAME}.gz -f
RewriteRule ^(.*)$ $1.gz [QSA,L]
##
# Static ressources
#
# Do not rewrite requests for static files or folders such as style sheets,
# images, movies or text documents.
##
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
##
# TYPOlight URLs
#
# By default, TYPOlight adds ".html" to the generated URLs to simulate static
# HTML documents. If you change the URL suffix in the back end settings, make
# sure to change it here accordingly!
#
# RewriteRule .*\.html$ index.php [L] # URL suffix .html
# RewriteRule .* index.php [L] # No URL suffix
# RewriteRule .*\.txt$ index.php [L] # URL suffix .txt
#
# If you are using mod_cache, it is recommended to use the RewriteRule below,
# which adds the query string to the internal URL:
#
# RewriteRule (.*\.html)$ index.php/$1 [L]
#
# Note that not all environments support mod_rewrite and mod_cache!
##
RewriteRule .*\.html$ index.php [L]
</IfModule>
Hat jemand eine Idee, woran das liegen kann?
Danke für eure Hilfe,
Hannes
-
Hallo Hannes,
wenn ich auf deiner Seite direkt im Quelltext die Datei plugins/slideshow2/js/slideshow.js aufrufe, bekomme ich nur "Seite nicht gefunden".
Ich denke mal, daran liegts.
edit: Gilt übrigens für alle Dateien (auch mootools) die im /plugin - Verzeichnis liegen. Überall Error 404.
Gruß
Michael
-
Hallo schuri,
willkommen in der Contao-Community!
Überprüfe mal Deine Installation mit dem Diagnosetool, ob wirklich alle Dateien übertragen wurden und alle Zugriffsrechte stimmen. Normalerweise läuft Contao bei 1und1 ganz ordentlich.
-
Das habe ich auch bemerkt, aber die Dateien liegen alle auf dem Server. Hat jemand eine Ahnung, warum der diese nicht richtig lädt?
-
Hallo schuri,
ergänze mal in Deiner Serverkonfigurationsdatei ".htaccess" die RewriteBase:
Code:
##
# Rewrite base
#
# Set the RewriteBase if your TYPOlight installation is in a subdirectoy and
# the rewrite rules are not working properly. Usage examples:
#
# RewriteBase /typolight-2.8.0
# RewriteBase /path/to/typolight
#
# Add your own RewriteBase after this comment.
##
RewriteBase /
-