1. Es befindet sich eine statische index.html auf dem Server, diese besitzt einen Link auf die dynamische (phpwcms) index.php
2. Wenn in der config und htaccess die Anweisung für Mod_rewrite auf 0/off steht sieht die Linkbezeichnung folgender maßen aus:
z. B. http://www.domain.de/index.php?seminare
Nun möchte ich das Mod_rewrite anstellen.
3. Ich aktiviere nur in der config.inc.php die rewrite_url auf 1 die htaccess lassse ich auf off und diese sieht so aus:
Code: Select all
# These settings are recommend
# Maybe you might have problems
# with other scripts that needs
# register_globals ON
php_flag magic_quotes_gpc Off
php_flag register_globals Off
# Check that you have set Options FollowSymLinks
# and right Allow
RewriteEngine Off
# maybe you need this
# DirectoryIndex index.html index.php
# Default ReWrite settings for phpwcms
# ===============================================
# This will rewrite 0.0.0.0.0.0.phtml => index.php?id=0.0.0.0.0.0
RewriteRule ^([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)\.phtml$ index.php?id=$1,$2,$3,$4,$5,$6
# This will rewrite mypage.phtml => index.php?mypage
RewriteRule ^(.+)\.phtml$ index.php?$1z. B. http://www.domain.de/seminare.phtml
und dann kommt bei Aktivierung ein Error 404:
The requested URL /seminare.phtml was not found on this server.
5. ich stelle zusätzlich die oben gezeigt htacess auf on und es folgt von Anfang an (http://www.domain.de/): You don't have permission to access / on this server.
Weiß jemand einen Rat?
Vielen Dank.