(gelöst) Pretty URLs mit Mod rewrite: keine Seiten mehr gefunden

CMS made simple ist grundsätzlich in der Lage, für Suchmaschinen optimierte URLs auszugeben. Die Feinheiten rund um Pretty URLs & SEO können hier diskutiert werden.
Post Reply
nOOber
Forum Members
Forum Members
Posts: 63
Joined: Thu Dec 10, 2009 11:29 am

(gelöst) Pretty URLs mit Mod rewrite: keine Seiten mehr gefunden

Post by nOOber »

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
Last edited by nOOber on Mon Mar 29, 2010 3:20 pm, edited 1 time in total.
nockenfell
Power Poster
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

Post by nockenfell »

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]
nOOber
Forum Members
Forum Members
Posts: 63
Joined: Thu Dec 10, 2009 11:29 am

Re: Pretty URLs mit Mod rewrite: keine Seiten mehr gefunden

Post by nOOber »

ah, danke wiedermal. Jetzt klappts!  :)
Post Reply

Return to “Suchmaschinenoptimierung (SEO)”