Hallo,
ich will Pretty URLs auf einer Seite aktivieren, die URLs werden richtig angezeigt, nur die entsprechenden Seiten nicht
Habe alles gerade aufgesetzt, ohne Pretty URLs funtionieren die Seiten
bin wie folgt vorgegangen:
http://wiki.cmsmadesimple.org/index.php ... ty_URLs/de
Ich bekomme die Meldung für Unterseiten (Startseite wird angezeigt)
"URL /de/leistungen was not found on this server."
Der Provider sagt, dass mod_rewrite unterstützt wird.
Hat wer nen Tip was ich falsch mache?
---------------------------------------------------------------------------------------------------
config.php:
#------------
#URL Settings
#------------
#What type of URL rewriting should we be using for pretty URLs? Valid options are:
#'none', 'internal', and 'mod_rewrite'. 'internal' will not work with IIS some CGI
#configurations. 'mod_rewrite' requires proper apache configuration, a valid
#.htaccess file and most likely {metadata} in your page templates. For more
#information, see:
#http://wiki.cmsmadesimple.org/index.php ... ty_URL.27s
$config['url_rewriting'] = 'mod_rewrite';
#Extension to use if you're using mod_rewrite for pretty URLs.
$config['page_extension'] = '';
# oder $config['page_extension'] = '.html';
---------------------------------------------------------------------------------------------------------------------------------------------------------
htaccess.txt
# Attempt to override some php settings, these settings may be helpful on some hosts if your
# default configuration does not meet CMS's minimum requirements, and your host
# has given your account appropriate permissions
#php_value upload_max_filesize "10M"
#php_value session_save_path "tmp/cache"
#php_flag magic_quotes_gpc Off
#php_flag register_globals Off
#php_flag session.use_trans_sid Off
# (this is important, so uncomment if your host permit)
#Options -Indexes
#ServerSignature Off
#Options +FollowSymLinks
RewriteEngine on
RewriteBase /
# 301 Redirect all requests that don't contain a dot or trailing slash to
# include a trailing slash
# RewriteCond %{REQUEST_URI} !/$
# RewriteCond %{REQUEST_URI} !\.
# RewriteRule ^(.*) %{REQUEST_URI}/ [R=301,L]
# Rewrites urls in the form of /parent/child/
# but only rewrites if the requested URL is not a file or directory
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+).htm$ index.php?page=$1 [QSA]
------------------------------------------------------------------------------------------------------------------------
Viele Dank schon mal
edit: und an falsche Stelle gepostet, sry
(gelöst) Pretty URLs mit Mod rewrite: keine Seiten mehr gefunden
(gelöst) Pretty URLs mit Mod rewrite: keine Seiten mehr gefunden
Last edited by nOOber on Mon Mar 29, 2010 3:20 pm, edited 1 time in total.
-
- Power Poster
- Posts: 751
- Joined: Fri Sep 12, 2008 2:34 pm
- Location: Schweiz / Switzerland
Re: Pretty URLs mit Mod rewrite: keine Seiten mehr gefunden
Das Problem liegt in der unterschiedlichen Konfiguration von config.php und .htaccess. In der config.php willst du keine Dateiendung anzeigen, .htaccess sucht hingegen nach der Dateiendung *.html. Entweder die config.php oder die .htaccess entsprechend deinem Wunsch anpassen.
[this message is written with 100% recycled bits]
Re: Pretty URLs mit Mod rewrite: keine Seiten mehr gefunden
ah, danke wiedermal. Jetzt klappts!