1st make sure you have your .htaccess file set up like so:carasmo wrote: I'm on a mac and I can't figure out what this tortiose is. Does it compare files and then find where to put the stuff in? Can anyone help me get pretty urls. The instructions here just don't work.
Then download the patched files and overwrite your current one is modules/News with them:Lloyd Winthorpe III wrote: Use this slightly modified .htaccessOptions +FollowSymLinks
RewriteEngine on
# 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 [NC]
RewriteCond %{REQUEST_FILENAME} !-d [NC]
RewriteRule (.*) index.php?page=$1 [QSA]
RewriteRule ^index.php$ index.php
http://forum.cmsmadesimple.org/index.ph ... ttach=1720
http://forum.cmsmadesimple.org/index.ph ... ttach=1720
Then do this to get news title working again:
And also make sure that you have the following enabled in config.phpElijah Lofgren wrote: To get News Article Title in Page Title like I just got working on this page: http://www.elijahlofgren.com/news/241/56/
1. Open modules/News/action.detail.php
2.Find this line:3.After that line add this code on a new line:Code: Select all
$onerow->title = $row['news_title'];
Code: Select all
$this->news_title = $row['news_title'];
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'] = '/';
#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'] = true;
#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';
Hope this helps,
Elijah