Hi there,
Here is the code requested - I need Pretty URLs and canonical 'www' for this site (the last 4 lines in the .htaccess which I got from the forum last week).
I tried the .htaccess in the /docs/ folder but kept getting 500 error, so I am using one which worked in previous installations:
===== .htaccess =====
#php_flag magic_quotes_gpc Off
#php_flag register_globals Off
#php_flag session.use_trans_sid Off
# Make sure you have Options FollowSymLinks
# and Allow on
RewriteEngine On
#Rewrites page.shtml as index.php?page
RewriteCond %{REQUEST_FILENAME} !-f [NC]
RewriteCond %{REQUEST_FILENAME} !-d [NC]
RewriteRule ^(.+)$ index.php?page=$1 [QSA]
RewriteCond %{HTTP_HOST} ^websitename.com$ [NC]
RewriteRule ^(.*)$
http://www.websitename.com/$1 [R=301,L]
RewriteCond %{HTTP_HOST} !^.*websitename.com [NC]
RewriteRule (.*)
http://www.websitename.com/$1 [R=301,L]
===========
======= and the config.php info for Pretty URLs =======
#------------
#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'] = false;
#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';
========================
Thanks Viebig and Maarten!! If I can get this sorted I'll be able to do the same for all my client sites in future.