News -> Nice mod_rewrite URLs?

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
Hereistos
Forum Members
Forum Members
Posts: 29
Joined: Sat Apr 11, 2009 12:42 am

News -> Nice mod_rewrite URLs?

Post 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 :(
Last edited by Hereistos on Sun Apr 12, 2009 1:29 pm, edited 1 time in total.
Hereistos
Forum Members
Forum Members
Posts: 29
Joined: Sat Apr 11, 2009 12:42 am

Re: News -> Nice mod_rewrite URLs?

Post by Hereistos »

Post Reply

Return to “CMSMS Core”