Ich habe ein Problem mit meiner Root-.htaccess-Datei.HTACCESS Bedingungen und/oder Rewrites funktionieren NICHT
Das ist meine .htaccess-Datei:
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase/
# START
RewriteRule ^$ index.php [QSA,L]
# PAGE
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-l
RewriteCond %{HTTP_HOST} !category
RewriteRule ^([A-Za-z0-9_-]+)/?$ index.php?page=$1 [QSA,L]
# POST
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-l
RewriteCond %{HTTP_HOST} !category
RewriteRule ^([A-Za-z0-9_-]+)/([A-Za-z0-9_-]+)/?$ index.php?page=$1&post=$2 [QSA,L]
# CATEGORY
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-l
RewriteCond %{HTTP_HOST} category
RewriteRule ^category$ category.php [QSA,L]
# SINGLE CATEGORY
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule ^category/([A-Za-z0-9_-]+)/?$ category.php?category=$1 [QSA,L]
# XML SITEMAP
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^sitemap\.xml$ sitemap.php [L]
</IfModule>
Als ich
www.pixel-factory.at/category
als Folge ich zu gehen versuchen bekomme eine leere "Seite". Das bedeutet, es zu
geht www.pixel-factory.at/index.php?page=category
(was existiert nicht) anstelle von www zu gehen
.pixel-factory.at/category.php
Bitte jemand helfen, kann es nicht schaffen. Vielen Dank!
Immer noch das gleiche ... –