mod_rewrite & RewriteBase /phpwcms/

rethus

Erfahrenes Mitglied
Ich habe ein CMS-System auf dem Server in dem Verzeichnis /phpwcms/ unter dem DocumentRoot installiert.
Nun habe ich in das Root-Verzeichnis des Servers eine .htaccess-Datei gelegt, die folgenden inhalt hat:
Code:
# 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


# Rewrite functionality for phpwcms
# optimized by Jan212
# 18-04-2004

# Check that you have set Options FollowSymLinks
# and right Allow
RewriteEngine On

# 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?$1


# If phpwcms is installed in a subdirectory,
# sample: "mysubdir" then use this (remove #)
# if above lines doesn't work for you
# ===============================================
Options +FollowSymlinks
RewriteBase /phpwcms/
RewriteRule ^([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)\.phtml$ /mysubdir/index.php?id=$1,$2,$3,$4,$5,$6
RewriteRule ^(.+)\.phtml$ /phpwcms/index.php?$1


# If you want to set rewrite logging
# ===============================================
#RewriteLog "/absolute/path/to/the/rewrite.log"
# 0 = Logging disabled, 9 = highest level of logging, only for debugging
#RewriteLogLevel 3
Mein Ziel ist es, wenn ich den normalen Domainnamen aufrufe, das od_rewrite dann automatisch ins phpwcms-Verzeichnis weiterleitet, aber das Verzeichnis nicht in der Adressleiste sichtbar wird.

Kann mir jemand einen Tip geben, warum das nicht funktioniert?
Mich deucht, es liegt irgendwie an diesem "RewriteBase"-Tag
 
Zurück