[SOLVED] Unusual mod_rewrite 'htm' + 'html' issue

Help with getting the CMS CORE package up and running. This does not include 3rd party modules, PHP scripts, anything downloaded via module manager or from any external source.
Locked
User avatar
fearmydesign
Power Poster
Power Poster
Posts: 363
Joined: Sun Feb 28, 2010 10:54 pm

[SOLVED] Unusual mod_rewrite 'htm' + 'html' issue

Post by fearmydesign »

Hello, I am having this weird issue... my "mod_rewrite" setup has been working fine for a while, but today I relized that I made the page extensions 'htm' and I went to change it to 'html' instead (I read those are more SEO friendly anyways), but when I changed it to 'html', the pages stop working, so I had to change it back to 'htm', is there something I am missing, or other setting either on the config file or cmsms settings? Below is my current config file, thank you.

Code: Select all

<?php
# CMS Made Simple Configuration File
# Documentation: /doc/CMSMS_config_reference.pdf
#
$config['php_memory_limit'] = '';
$config['process_whole_template'] = false;
$config['debug'] = false;
$config['output_compression'] = false;
$config['timezone'] = 'America/New_York';
$config['dbms'] = 'mysql';
$config['db_hostname'] = '*******';
$config['db_username'] = '*******';
$config['db_password'] = '*******';
$config['db_name'] = '*******';
$config['db_port'] = 0;
$config['db_prefix'] = 'cms_';
$config['persistent_db_conn'] = '';
$config['use_adodb_lite'] = true;
$config['root_url'] = 'http://www.website.com';
$config['ssl_url'] = 'https://www.website.com';
$config['root_path'] = '/home/md/public_html';
$config['admin_dir'] = 'admin';
$config['previews_path'] = '/home/md/public_html/tmp/cache';
$config['uploads_path'] = '/home/md/public_html/uploads';
$config['uploads_url'] = 'http://www.website.com/uploads';
$config['max_upload_size'] = 128000000;
$config['default_upload_permission'] = '664';
$config['use_smarty_php_tags'] = false;
$config['auto_alias_content'] = true;
$config['url_rewriting'] = 'mod_rewrite';
$config['page_extension'] = '.htm';
$config['query_var'] = 'page';
$config['image_manipulation_prog'] = 'GD';
$config['image_transform_lib_path'] = '/usr/bin/ImageMagick/';
$config['image_uploads_path'] = '/home/md/public_html/uploads/images';
$config['image_uploads_url'] = 'http://www.website.com/uploads/images';
$config['ssl_uploads_url'] = '/uploads';
$config['locale'] = '';
$config['default_encoding'] = 'utf-8';
$config['admin_encoding'] = 'utf-8';
$config['set_names'] = true;
$config['wiki_url'] = 'http://wiki.cmsmadesimple.org/index.php/User_Handbook/Admin_Panel';
?>
Last edited by fearmydesign on Tue Feb 14, 2012 9:59 pm, edited 1 time in total.
User avatar
fearmydesign
Power Poster
Power Poster
Posts: 363
Joined: Sun Feb 28, 2010 10:54 pm

Re: Unusual mod_rewrite 'htm' + 'html' issue

Post by fearmydesign »

Ok, I forgot to change the .htaccess file, that's why it wasn't working.

From this:

Code: Select all

RewriteRule ^(.+).htm$ index.php?page=$1 [QSA]
To this:

Code: Select all

RewriteRule ^(.+).html$ index.php?page=$1 [QSA]
Locked

Return to “[locked] Installation, Setup and Upgrade”