Pretty URL mit mod rewrite und CMSMS
Verfasst: 07.05.2011 16:57
Hallo Leute,
zur Zeit sehen meine URL so aus:
www.domain.com/index.php?page=PC&pg=2&ukat=software
ich möchte aber folgendes haben:
www.domain.com/pc/2/software.htm
Die Seite arbeitet mit CMS Made Simple.
Ich habe schon alle möglichen Varianten probiert aber ohne Erfolg.
Die URL sieht zur Zeit so aus:
http://www.domain.com/PC.htm&pg=2&ukat=software
hier ist meine htaccess:
und das ist meine config.php für CMSMS:
Wie macht man das richtig, mit mehreren Query Variablen?
Danke schon mal für Eure Hilfe.
Mfg
Torsten
zur Zeit sehen meine URL so aus:
www.domain.com/index.php?page=PC&pg=2&ukat=software
ich möchte aber folgendes haben:
www.domain.com/pc/2/software.htm
Die Seite arbeitet mit CMS Made Simple.
Ich habe schon alle möglichen Varianten probiert aber ohne Erfolg.
Die URL sieht zur Zeit so aus:
http://www.domain.com/PC.htm&pg=2&ukat=software
hier ist meine htaccess:
Code: Alles auswählen
Options +FollowSymLinks
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+).htm$ index.php?page=$1 [QSA]
Code: Alles auswählen
#------------
#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/FAQ/Installation/Pretty_URLs#Pretty_URL.27s
$config['url_rewriting'] = 'mod_rewrite';
#Extension to use if you're using mod_rewrite for pretty URLs.
$config['page_extension'] = '.htm';
Danke schon mal für Eure Hilfe.
Mfg
Torsten