[OPGELOST] Krijg pretty urls niet (meer) aan de gang
Posted: Wed Jun 24, 2009 3:37 pm
Hallo,
Ik had cms ms versie 1.5.1 geinstalleerd en had met de mod_rewrite-methode prachtige url's.
Ik dacht te upgraden naar versie 1.6, kreeg daarbij foutmeldingen en besloot toen de oude versie volledig te verwijderen en 1.6 from scratch te installeren.
Net als voorheen de config.php en de .htaccess (uits /doc/) aangepast voor de pretty urls, maar ik krijg het niet werkend. Ik heb zo'n beetje alle forum-topics hierover al gelezen, maar vind de oorzaak van het probleem niet.
Onderaan staan mijn config.php en .htaccess.
Wie oh wie kan mij uit de brand helpen?
config.php:
#------------
#URL Settings
#------------
#Show mod_rewrite URLs in the menu? You must enable 'use_hierarchy' for this to work for modules
$config['assume_mod_rewrite'] = true;
#Extension to use if you're using mod_rewrite for pretty URLs.
$config['page_extension'] = '.html';
#If you don't use mod_rewrite, then would you like to use the built-in
#pretty url mechanism? This will not work with IIS and the {metadata} tag
#should be in all of your templates before enabling.
$config['internal_pretty_urls'] = false;
#If you're using the internal pretty url mechanism or mod_rewrite, would you like to
#show urls in their hierarchy? (ex. http://www.mysite.com/parent/parent/childpage)
$config['use_hierarchy'] = false;
#If using none of the above options, what should we be using for the query string
#variable? (ex. http://www.mysite.com/index.php?page=somecontent)
$config['query_var'] = 'page';
.htaccess:
# 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
#
#Sub-dir e.g: /cmsms
RewriteBase /cmsms/
#
RewriteCond %{HTTP_HOST} ^nvdb\.info$ [NC]
RewriteRule ^(.*) http://www.nvdb.info/ [L,R=301]
# 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 ^(.+)$ index.php?page=$1 [QSA]
Ik had cms ms versie 1.5.1 geinstalleerd en had met de mod_rewrite-methode prachtige url's.
Ik dacht te upgraden naar versie 1.6, kreeg daarbij foutmeldingen en besloot toen de oude versie volledig te verwijderen en 1.6 from scratch te installeren.
Net als voorheen de config.php en de .htaccess (uits /doc/) aangepast voor de pretty urls, maar ik krijg het niet werkend. Ik heb zo'n beetje alle forum-topics hierover al gelezen, maar vind de oorzaak van het probleem niet.
Onderaan staan mijn config.php en .htaccess.
Wie oh wie kan mij uit de brand helpen?
config.php:
#------------
#URL Settings
#------------
#Show mod_rewrite URLs in the menu? You must enable 'use_hierarchy' for this to work for modules
$config['assume_mod_rewrite'] = true;
#Extension to use if you're using mod_rewrite for pretty URLs.
$config['page_extension'] = '.html';
#If you don't use mod_rewrite, then would you like to use the built-in
#pretty url mechanism? This will not work with IIS and the {metadata} tag
#should be in all of your templates before enabling.
$config['internal_pretty_urls'] = false;
#If you're using the internal pretty url mechanism or mod_rewrite, would you like to
#show urls in their hierarchy? (ex. http://www.mysite.com/parent/parent/childpage)
$config['use_hierarchy'] = false;
#If using none of the above options, what should we be using for the query string
#variable? (ex. http://www.mysite.com/index.php?page=somecontent)
$config['query_var'] = 'page';
.htaccess:
# 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
#
#Sub-dir e.g: /cmsms
RewriteBase /cmsms/
#
RewriteCond %{HTTP_HOST} ^nvdb\.info$ [NC]
RewriteRule ^(.*) http://www.nvdb.info/ [L,R=301]
# 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 ^(.+)$ index.php?page=$1 [QSA]