Jetzt bin ich eigentlich so gut wie am Ende meines Projektes angekommen und habe irgendwie ein grundlegendes Problem mit meiner htaccess-Einstellung.
Ich komme einfach nicht dahinter, wo sich der Fehler verbirgt. Prinzipiell habe ich alles versucht, was mir eingefallen ist: vom Löschen bis hin zur Neuerstellung der htaccess-Datei, das Umbenennen der Kategorien und das Anklicken / Ausschalten diverser Einstellungsmöglichkeiten im AMR-Modul.
Ich habe sogar noch mal das Forum der DomainFactory durchsucht, weil ich dachte die hätten vielleicht eine bestimmte Einstellung, die ich übersehen habe.
Dabei sollte es ja eigentlich ganz einfach sein?
Ich habe beide mitgelieferten htaccess-Dateien von Contenido ausprobiert. Beide gehen nur, so lange ich nicht den Haken "Advanced Mod Rewrite aktivieren" anklicke.
Danach würfelt mir das FrontEnd bloß mehr 404-Seiten aus, weil er die geänderten URLs nicht mehr zuordnen kann.
In meinem Contenido-Verzeichnis habe ich folgende htaccess stehen:
Code: Alles auswählen
################################################################################
# Apache settings for Contenido backend
#
# @version 0.0.1
# @author Murat Purc <murat@purc.de>
# @copyright four for business AG <www.4fb.de>
# @license http://www.contenido.org/license/LIZENZ.txt
# @link http://www.4fb.de
# @link http://www.contenido.org
# @since file available since contenido release 4.8.15
#
# $Id: .htaccess_recommended 1297 2011-02-10 22:48:38Z xmurrix $
################################################################################
# Some rules to configure ETags
FileETag MTime Size
<IfModule mod_expires.c>
<FilesMatch "\.(js|css|jpg|gif|png)$">
ExpiresActive on
ExpiresDefault "access plus 1 year"
</FilesMatch>
</IfModule>
# Some rules to compress files
<IfModule mod_deflate.c>
<FilesMatch "\.(js|css|html|htm|php|xml)$">
SetOutputFilter DEFLATE
</FilesMatch>
</IfModule>
In meinem CMS-Verzeichnis habe ich die restriktive htAccess hoch geladen:
Code: Alles auswählen
################################################################################
# CONTENIDO AMR plugin restrictive rewrite rules set.
#
# Contains strict rules, each rewrite exclusion must be set manually.
# - Exclude requests to directories usage/, contenido/, setup/, cms/upload/
# - Exclude requests to cms/front_content.php
# - Pass thru requests to common ressources (pictures, movies, js, css, pdf)
#
# @version 0.0.1
# @author Murat Purc <murat@purc.de>
# @copyright four for business AG <www.4fb.de>
# @license http://www.contenido.org/license/LIZENZ.txt
# @link http://www.4fb.de
# @link http://www.contenido.org
# @since file available since CONTENIDO release 4.9.0
#
# $Id$
################################################################################
# Enable following lines to run PHP5 on 1und1.de (1and1.com)
#AddType x-mapp-php5 .php
#AddHandler x-mapp-php5 .php
<IfModule mod_rewrite.c>
# Enable rewrite engine
RewriteEngine on
# Specify a base URL-path for the rules
RewriteBase /cms
# Catch some common exploits in query string to get rid of them.
# NOTE: Conditions to prevent protocols (ftp, http[s]) in query string could
# be a disadvantage in some cases.
RewriteCond %{QUERY_STRING} contenido_path=.*$ [NC,OR]
RewriteCond %{QUERY_STRING} cfg\[path\]=.*$ [NC,OR]
RewriteCond %{QUERY_STRING} _PHPLIB\[libdir\]=.*$ [NC,OR]
RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]
RewriteCond %{QUERY_STRING} ftp://.*$ [NC,OR]
RewriteCond %{QUERY_STRING} http[s]*://.*$ [NC]
RewriteRule ^.* - [F,L] # all matching conditions from above will end in nirvana
# Exclude some files and directories from rewriting
RewriteRule ^usage/.*$ - [L]
RewriteRule ^contenido/.*$ - [L]
RewriteRule ^setup/.*$ - [L]
RewriteRule ^cms/upload/.*$ - [L]
RewriteRule ^cms/test/.*$ - [L]
RewriteRule ^cms/front_content.php.*$ - [L]
RewriteRule ^cms/dbfs.php.*$ - [L]
# Exclude common extensions from rewriting and pass remaining requests to
# front_content.php.
RewriteRule !\.(avi|css|doc|flv|gif|gzip|ico|jpeg|jpg|js|mov|mp3|pdf|png|ppt|rar|svg|swf|txt|wav|wmv|xml|zip)$ front_content.php [NC,QSA,L]
</IfModule>
# Some rules to compress files.
# NOTE: Following settings are not mod rewrite specific, but enabling mod_deflate
# for some file types can help to reduce bandwith.
<IfModule mod_deflate.c>
<FilesMatch "\.(js|css|html|htm|php|xml)$">
SetOutputFilter DEFLATE
</FilesMatch>
</IfModule>
Lösche ich beide htaccess-Dateien, um eine neue für zB den Contenido-Ordner zu generieren, ist das Ergebnis eine weiße Seite im FrontEnd, obwohl im BackEnd alles funktioniert.
Ich muss aber auch eingestehen, dass ich mich mit dem Thema htaccess nicht unbedingt gut auskenne.
Wahrscheinlich übersehe ich etwas total einfaches.
Danke trotzdem für etwaige Hilfe :-/