<SOLVED> News returnid is wrong when deleting the example news (?)
Posted: Thu Dec 25, 2008 2:22 pm
I am using CMS Made Simple 1.5.1. My hosting is GoDaddy.
I have tried to enable pretty URL's using mod_rewrite as per these instructions: http://wiki.cmsmadesimple.org/index.php ... retty_URLs
This is my .htaccess file:
This is the edited part of my config.php file:
If I click on a news item, I get this error:
Also, now I get the content encoding error instead of a 404 error everytime I ask the server for some file that does not exist.
(On a related note, the umlauts are converted so that a-umlaut becomes ae. It should normally become just an a without umlaut.)
I have tried to enable pretty URL's using mod_rewrite as per these instructions: http://wiki.cmsmadesimple.org/index.php ... retty_URLs
This is my .htaccess file:
Code: Select all
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 ^(.+).html$ index.php?page=$1 [QSA]
Code: Select all
#------------
#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'] = true;
#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';
You can try this live by going to http://www.tarkkamarkka.com and clicking on any news item.Content Encoding Error
The page you are trying to view cannot be shown because it uses an invalid or unsupported form of compression.
The page you are trying to view cannot be shown because it uses an invalid or unsupported form of compression.
* Please contact the website owners to inform them of this problem.
Also, now I get the content encoding error instead of a 404 error everytime I ask the server for some file that does not exist.
(On a related note, the umlauts are converted so that a-umlaut becomes ae. It should normally become just an a without umlaut.)