haha hat geschrieben:Deswegen halte ich auch so viel von den ganzen Root-Server-, vServer- und Sonstwas-Server-Angeboten…
Ja ja, vServer nie wieder! Da wird einem ein neues Systemupdate aufgezwungen (wie schon erlebt) und nix läuft mehr. Dann doch besser Rootserver. Da kannst du wenigstens machen was du willst und bei mir heißt das meist "möglichst wenig", weil ich froh bin, wenn alles läuft. Angeblich soll ein Linux-System ohne irgendwelche Updates ja 10 Jahre problemlos laufen und in 10 Jahren habe das System vielleicht auch verstanden
haha hat geschrieben:Ändere den <virtualhost>-Block Deiner betroffenen Hauptdomain folgendermaßen:
<VirtualHost 47.11.47.11>
ServerName domain.de
DocumentRoot /var/www/domain/de
RewriteLog /var/log/apache/rewrite.log
RewriteLogLevel 9
</VirtualHost>
Nachdem Du den Apache neu gestartet hast, sollte die Datei /var/log/apache/rewrite.log sich bei jedem Zugriff mit einem sehr detailieren Protokoll über die Aktivitäten von mod_rewrite füllen.
Habe 3 Zugriffe gemacht. Einen auf die Domain selbst, einen auf die index.php ohne Parameter und einen auf index.php?index ... und so schaut das bei mir aus....
(3) [per-dir /var/www/domain/de/] add path-info postfix: /var/www/domain/de -> /var/www/domain/de/
(3) [per-dir /var/www/domain/de/] strip per-dir prefix: /var/www/domain/de/ ->
(3) [per-dir /var/www/domain/de/] applying pattern '.*' to uri ''
(4) RewriteCond: input='GET / HTTP/1.1' pattern='^[A-Z]+\s+(.*/)(index)\.[a-z]+(\?index)?\s+HTTP/1\.\d+$' => not-matched
(1) [per-dir /var/www/domain/de/] pass through /var/www/domain/de
(3) [per-dir /var/www/domain/de/] strip per-dir prefix: /var/www/domain/de/index.php -> index.php
(3) [per-dir /var/www/domain/de/] applying pattern '.*' to uri 'index.php'
(4) RewriteCond: input='GET / HTTP/1.1' pattern='^[A-Z]+\s+(.*/)(index)\.[a-z]+(\?index)?\s+HTTP/1\.\d+$' => not-matched
(1) [per-dir /var/www/domain/de/] pass through /var/www/domain/de/index.php
(3) [per-dir /var/www/domain/de/] strip per-dir prefix: /var/www/domain/de/phpwcms_template/inc_js/frontend.js -> phpwcms_template/inc_js/frontend.js
(3) [per-dir /var/www/domain/de/] applying pattern '.*' to uri 'phpwcms_template/inc_js/frontend.js'
(4) RewriteCond: input='GET /phpwcms_template/inc_js/frontend.js HTTP/1.1' pattern='^[A-Z]+\s+(.*/)(index)\.[a-z]+(\?index)?\s+HTTP/1\.\d+$' => not-matched
(1) [per-dir /var/www/domain/de/] pass through /var/www/domain/de/phpwcms_template/inc_js/frontend.js
(3) [per-dir /var/www/domain/de/] strip per-dir prefix: /var/www/domain/de/phpwcms_template/inc_css/frontend.css -> phpwcms_template/inc_css/frontend.css
(3) [per-dir /var/www/domain/de/] applying pattern '.*' to uri 'phpwcms_template/inc_css/frontend.css'
(4) RewriteCond: input='GET /phpwcms_template/inc_css/frontend.css HTTP/1.1' pattern='^[A-Z]+\s+(.*/)(index)\.[a-z]+(\?index)?\s+HTTP/1\.\d+$' => not-matched
(1) [per-dir /var/www/domain/de/] pass through /var/www/domain/de/phpwcms_template/inc_css/frontend.css
(3) [per-dir /var/www/domain/de/] strip per-dir prefix: /var/www/domain/de/img/leer.gif -> img/leer.gif
(3) [per-dir /var/www/domain/de/] applying pattern '.*' to uri 'img/leer.gif'
(4) RewriteCond: input='GET /img/leer.gif HTTP/1.1' pattern='^[A-Z]+\s+(.*/)(index)\.[a-z]+(\?index)?\s+HTTP/1\.\d+$' => not-matched
(1) [per-dir /var/www/domain/de/] pass through /var/www/domain/de/img/leer.gif
(3) [per-dir /var/www/domain/de/] strip per-dir prefix: /var/www/domain/de/banner/home.jpg -> banner/home.jpg
(3) [per-dir /var/www/domain/de/] applying pattern '.*' to uri 'banner/home.jpg'
(4) RewriteCond: input='GET /banner/home.jpg HTTP/1.1' pattern='^[A-Z]+\s+(.*/)(index)\.[a-z]+(\?index)?\s+HTTP/1\.\d+$' => not-matched
(1) [per-dir /var/www/domain/de/] pass through /var/www/domain/de/banner/home.jpg
(3) [per-dir /var/www/domain/de/] strip per-dir prefix: /var/www/domain/de/img/article/nav_link_0.gif -> img/article/nav_link_0.gif
(3) [per-dir /var/www/domain/de/] applying pattern '.*' to uri 'img/article/nav_link_0.gif'
(4) RewriteCond: input='GET /img/article/nav_link_0.gif HTTP/1.1' pattern='^[A-Z]+\s+(.*/)(index)\.[a-z]+(\?index)?\s+HTTP/1\.\d+$' => not-matched
(1) [per-dir /var/www/domain/de/] pass through /var/www/domain/de/img/article/nav_link_0.gif
(3) [per-dir /var/www/domain/de/] strip per-dir prefix: /var/www/domain/de/favicon.ico -> favicon.ico
(3) [per-dir /var/www/domain/de/] applying pattern '.*' to uri 'favicon.ico'
(4) RewriteCond: input='GET /favicon.ico HTTP/1.1' pattern='^[A-Z]+\s+(.*/)(index)\.[a-z]+(\?index)?\s+HTTP/1\.\d+$' => not-matched
(1) [per-dir /var/www/domain/de/] pass through /var/www/domain/de/favicon.ico
(3) [per-dir /var/www/domain/de/] strip per-dir prefix: /var/www/domain/de/index.php -> index.php
(3) [per-dir /var/www/domain/de/] applying pattern '.*' to uri 'index.php'
(4) RewriteCond: input='GET /index.php?index HTTP/1.1' pattern='^[A-Z]+\s+(.*/)(index)\.[a-z]+(\?index)?\s+HTTP/1\.\d+$' => not-matched
(1) [per-dir /var/www/domain/de/] pass through /var/www/domain/de/index.php
(3) [per-dir /var/www/domain/de/] strip per-dir prefix: /var/www/domain/de/phpwcms_template/inc_js/frontend.js -> phpwcms_template/inc_js/frontend.js
(3) [per-dir /var/www/domain/de/] applying pattern '.*' to uri 'phpwcms_template/inc_js/frontend.js'
(4) RewriteCond: input='GET /phpwcms_template/inc_js/frontend.js HTTP/1.1' pattern='^[A-Z]+\s+(.*/)(index)\.[a-z]+(\?index)?\s+HTTP/1\.\d+$' => not-matched
(1) [per-dir /var/www/domain/de/] pass through /var/www/domain/de/phpwcms_template/inc_js/frontend.js
(3) [per-dir /var/www/domain/de/] strip per-dir prefix: /var/www/domain/de/phpwcms_template/inc_css/frontend.css -> phpwcms_template/inc_css/frontend.css
(3) [per-dir /var/www/domain/de/] applying pattern '.*' to uri 'phpwcms_template/inc_css/frontend.css'
(4) RewriteCond: input='GET /phpwcms_template/inc_css/frontend.css HTTP/1.1' pattern='^[A-Z]+\s+(.*/)(index)\.[a-z]+(\?index)?\s+HTTP/1\.\d+$' => not-matched
(1) [per-dir /var/www/domain/de/] pass through /var/www/domain/de/phpwcms_template/inc_css/frontend.css
(3) [per-dir /var/www/domain/de/] strip per-dir prefix: /var/www/domain/de/img/leer.gif -> img/leer.gif
(3) [per-dir /var/www/domain/de/] applying pattern '.*' to uri 'img/leer.gif'
(4) RewriteCond: input='GET /img/leer.gif HTTP/1.1' pattern='^[A-Z]+\s+(.*/)(index)\.[a-z]+(\?index)?\s+HTTP/1\.\d+$' => not-matched
(1) [per-dir /var/www/domain/de/] pass through /var/www/domain/de/img/leer.gif
(3) [per-dir /var/www/domain/de/] strip per-dir prefix: /var/www/domain/de/banner/home.jpg -> banner/home.jpg
(3) [per-dir /var/www/domain/de/] applying pattern '.*' to uri 'banner/home.jpg'
(4) RewriteCond: input='GET /banner/home.jpg HTTP/1.1' pattern='^[A-Z]+\s+(.*/)(index)\.[a-z]+(\?index)?\s+HTTP/1\.\d+$' => not-matched
(1) [per-dir /var/www/domain/de/] pass through /var/www/domain/de/banner/home.jpg
(3) [per-dir /var/www/domain/de/] strip per-dir prefix: /var/www/domain/de/img/article/nav_link_0.gif -> img/article/nav_link_0.gif
(3) [per-dir /var/www/domain/de/] applying pattern '.*' to uri 'img/article/nav_link_0.gif'
(4) RewriteCond: input='GET /img/article/nav_link_0.gif HTTP/1.1' pattern='^[A-Z]+\s+(.*/)(index)\.[a-z]+(\?index)?\s+HTTP/1\.\d+$' => not-matched
(1) [per-dir /var/www/domain/de/] pass through /var/www/domain/de/img/article/nav_link_0.gif
(3) [per-dir /var/www/domain/de/] strip per-dir prefix: /var/www/domain/de/favicon.ico -> favicon.ico
(3) [per-dir /var/www/domain/de/] applying pattern '.*' to uri 'favicon.ico'
(4) RewriteCond: input='GET /favicon.ico HTTP/1.1' pattern='^[A-Z]+\s+(.*/)(index)\.[a-z]+(\?index)?\s+HTTP/1\.\d+$' => not-matched
(1) [per-dir /var/www/domain/de/] pass through /var/www/domain/de/favicon.ico
(3) [per-dir /var/www/domain/de/] strip per-dir prefix: /var/www/domain/de/index.php -> index.php
(3) [per-dir /var/www/domain/de/] applying pattern '.*' to uri 'index.php'
(4) RewriteCond: input='GET /index.php HTTP/1.1' pattern='^[A-Z]+\s+(.*/)(index)\.[a-z]+(\?index)?\s+HTTP/1\.\d+$' => not-matched
(1) [per-dir /var/www/domain/de/] pass through /var/www/domain/de/index.php
(3) [per-dir /var/www/domain/de/] strip per-dir prefix: /var/www/domain/de/phpwcms_template/inc_js/frontend.js -> phpwcms_template/inc_js/frontend.js
(3) [per-dir /var/www/domain/de/] applying pattern '.*' to uri 'phpwcms_template/inc_js/frontend.js'
(4) RewriteCond: input='GET /phpwcms_template/inc_js/frontend.js HTTP/1.1' pattern='^[A-Z]+\s+(.*/)(index)\.[a-z]+(\?index)?\s+HTTP/1\.\d+$' => not-matched
(1) [per-dir /var/www/domain/de/] pass through /var/www/domain/de/phpwcms_template/inc_js/frontend.js
(3) [per-dir /var/www/domain/de/] strip per-dir prefix: /var/www/domain/de/phpwcms_template/inc_css/frontend.css -> phpwcms_template/inc_css/frontend.css
(3) [per-dir /var/www/domain/de/] applying pattern '.*' to uri 'phpwcms_template/inc_css/frontend.css'
(4) RewriteCond: input='GET /phpwcms_template/inc_css/frontend.css HTTP/1.1' pattern='^[A-Z]+\s+(.*/)(index)\.[a-z]+(\?index)?\s+HTTP/1\.\d+$' => not-matched
(1) [per-dir /var/www/domain/de/] pass through /var/www/domain/de/phpwcms_template/inc_css/frontend.css
(3) [per-dir /var/www/domain/de/] strip per-dir prefix: /var/www/domain/de/img/leer.gif -> img/leer.gif
(3) [per-dir /var/www/domain/de/] applying pattern '.*' to uri 'img/leer.gif'
(4) RewriteCond: input='GET /img/leer.gif HTTP/1.1' pattern='^[A-Z]+\s+(.*/)(index)\.[a-z]+(\?index)?\s+HTTP/1\.\d+$' => not-matched
(1) [per-dir /var/www/domain/de/] pass through /var/www/domain/de/img/leer.gif
(3) [per-dir /var/www/domain/de/] strip per-dir prefix: /var/www/domain/de/banner/home.jpg -> banner/home.jpg
(3) [per-dir /var/www/domain/de/] applying pattern '.*' to uri 'banner/home.jpg'
(4) RewriteCond: input='GET /banner/home.jpg HTTP/1.1' pattern='^[A-Z]+\s+(.*/)(index)\.[a-z]+(\?index)?\s+HTTP/1\.\d+$' => not-matched
(1) [per-dir /var/www/domain/de/] pass through /var/www/domain/de/banner/home.jpg
(3) [per-dir /var/www/domain/de/] strip per-dir prefix: /var/www/domain/de/img/article/nav_link_0.gif -> img/article/nav_link_0.gif
(3) [per-dir /var/www/domain/de/] applying pattern '.*' to uri 'img/article/nav_link_0.gif'
(4) RewriteCond: input='GET /img/article/nav_link_0.gif HTTP/1.1' pattern='^[A-Z]+\s+(.*/)(index)\.[a-z]+(\?index)?\s+HTTP/1\.\d+$' => not-matched
(1) [per-dir /var/www/domain/de/] pass through /var/www/domain/de/img/article/nav_link_0.gif
haha hat geschrieben:Sieht auf den ersten Blick vielleicht etwas verwirrend aus, lässt sich aber bei genauerem Studium gut nachvollziehen. Beachte, dass das eigentlich zwei Anfragen sind, A und B, B ergibt sich aus der 301-Weiterleitung (bei "[REDIRECT/301]").
Sehr verwirrend, ja! Bei mir steht auch nicht A+B, wie du siehst, sondern Zahlen. Die RewriteLog-Zeilen habe ich wieder auskommentiert. Danke für den Hinweis!