lesbare URLs bereiten Probleme
am 17.02.2008 - 15:39 Uhr in
Ich habe ein Problem mit den lesbaren URLs bei Drupal und cih hoffe Ihr könn mir helfen. Es wird alles wunderbar angezeigt, jedoch nur solange ich nicht zu weit im Verzeichnisbaum hinabsteige.Z.B. kann ich www.beispiel.de/forum erreichen. Wenn ichd anna uf einen beitrag klicke will er z.B. www.beispiel.de/forum/3 öffnen und zeigt mir nur die Schrift des linken Menüs an, mehr nicht.
Ich habe in /etc/apache2/httpd.conf die Zeile "Include /srv/www/htdocs/drupal.conf" hinzugefügt. Die drupal.conf sieht wie folgt aus:
#
# Apache/PHP/Drupal settings:
#
# Protect files and directories from prying eyes.
Order allow,deny
# Don't show directory listings for URLs which map to a directory.
Options -Indexes
# Follow symbolic links in this directory.
Options +FollowSymLinks
# Customized error messages.
ErrorDocument 404 /index.php
# Set the default handler.
DirectoryIndex index.php
# Override PHP settings. More in sites/default/settings.php
# but the following cannot be changed at runtime.
# PHP 4, Apache 1.
php_value magic_quotes_gpc 0
php_value register_globals 0
php_value session.auto_start 0
php_value mbstring.http_input pass
php_value mbstring.http_output pass
php_value mbstring.encoding_translation 0
# PHP 4, Apache 2.
php_value magic_quotes_gpc 0
php_value register_globals 0
php_value session.auto_start 0
php_value mbstring.http_input pass
php_value mbstring.http_output pass
php_value mbstring.encoding_translation 0
# PHP 5, Apache 1 and 2.
php_value magic_quotes_gpc 0
php_value register_globals 0
php_value session.auto_start 0
php_value mbstring.http_input pass
php_value mbstring.http_output pass
php_value mbstring.encoding_translation 0
# Requires mod_expires to be enabled.
# Enable expirations.
ExpiresActive On
# Cache all files for 2 weeks after access (A).
ExpiresDefault A1209600
# Do not cache dynamically generated pages.
ExpiresByType text/html A1
# Various rewrite rules.
RewriteEngine on
# If your site can be accessed both with and without the 'www.' prefix, you
# can use one of the following settings to redirect users to your preferred
# URL, either WITH or WITHOUT the 'www.' prefix. Choose ONLY one option:
#
# To redirect all users to access the site WITH the 'www.' prefix,
# (http://example.com/... will be redirected to http://www.example.com/...)
# adapt and uncomment the following:
# RewriteCond %{HTTP_HOST} ^example\.com$ [NC]
# RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301]
#
# To redirect all users to access the site WITHOUT the 'www.' prefix,
# (http://www.example.com/... will be redirected to http://example.com/...)
# uncomment and adapt the following:
# RewriteCond %{HTTP_HOST} ^www\.example\.com$ [NC]
# RewriteRule ^(.*)$ http://example.com/$1 [L,R=301]
# Modify the RewriteBase if you are using Drupal in a subdirectory or in a
# VirtualDocumentRoot and the rewrite rules are not working properly.
# For example if your site is at http://example.com/drupal uncomment and
# modify the following line:
# RewriteBase /drupal
#
# If your site is running in a VirtualDocumentRoot at http://example.com/,
# uncomment the following line:
#RewriteBase /
# Rewrite URLs of the form 'index.php?q=x'
RewriteCond %{REQUEST_FILENAME} !^/$
RewriteCond %{REQUEST_FILENAME} !^/(files|misc|uploads)(/.*)?
RewriteCond %{REQUEST_FILENAME} !\.(php|ico|png|jpg|gif|css|js|html?)(\W.*)?
RewriteRule ^(.*)$ /index.php?q=$1 [L,QSA]
- Anmelden oder Registrieren um Kommentare zu schreiben
Schau mal hier
am 17.02.2008 - 16:45 Uhr
Schau mal hier http://drupalbasic.de/node/1
----------------------------------------
Alle Angaben ohne Gewähr!!:D
http://www.tobiasbaehr.de/
Danke, aber das läuft
am 17.02.2008 - 17:36 Uhr
Danke, aber das läuft leider nicht unter xampp.
Ich habe hier eine virtuelle Maschine aufgemacht auf der Suse 10.3 läuft.
Ich habe es jetzt auch mal versucht mit einer neuinstallation, jedoch passiert genau der gleiche Fehler.
Ok ich habe es jetzt
am 17.02.2008 - 19:51 Uhr
Ok ich habe es jetzt geschafft, die Option "Options +FollowSymlinks" hat gefehlt.