Page 1 of 1

News -> Nice mod_rewrite URLs?

Posted: Sat Apr 11, 2009 7:56 pm
by Hereistos
Hey,
is it possible to make the news module use and display nice mod_rewrite URLs?
I have the following config settings:

Code: Select all

$config['assume_mod_rewrite'] = true;
$config['page_extension'] = '.html';
$config['internal_pretty_urls'] = false;
$config['use_hierarchy'] = true;
$config['query_var'] = 'page';
and the following htaccess:

Code: Select all

##
## Gegen Double Content
##
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteCond %{HTTP_HOST} !^localhost [NC]
RewriteCond %{HTTP_HOST} !^$
RewriteRule ^(.*) http://www.%{HTTP_HOST}/$1 [R=301]

## Pretty URLs
RewriteBase /blaaa/cmsms/

#
# 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]
And further (I'm using latest CMSms 1.5.4), what does this mean:
Image

thanks so far!

Edit: the "read more" links arlready use the mod_rewrite links, but not the pagination links ... further, the link-title (as seen on the screenshot) is broken :(

Re: News -> Nice mod_rewrite URLs?

Posted: Tue Apr 14, 2009 8:08 am
by Hereistos