Pretty URL in 1.8.2?
Posted: Thu Oct 07, 2010 9:29 am
I'm trying to use Pretty URL's in version 1.8.2 with little to no success.
I was able to amend the URL settings:
From here I proceeded to take the htaccess.txt from the /doc directory and replace the existing .htaccess file.
This allowed my page extensions and url to change to eg http://test.com/test.htm but this page was throwing up an error saying it could not be found. The page is still available under the default http://test.com/index.php?page=test.
Does anyone have any insight into where I'm going wrong?
Thanks
Chris
I was able to amend the URL settings:
Code: Select all
#------------
#URL Settings
#------------
#What type of URL rewriting should we be using for pretty URLs? Valid options are:
#'none', 'internal', and 'mod_rewrite'. 'internal' will not work with IIS some CGI
#configurations. 'mod_rewrite' requires proper apache configuration, a valid
#.htaccess file and most likely {metadata} in your page templates. For more
#information, see:
#http://wiki.cmsmadesimple.org/index.php/FAQ/Installation/Pretty_URLs#Pretty_URL.27s
$config['url_rewriting'] = 'mod_rewrite';
#Extension to use if you're using mod_rewrite for pretty URLs.
$config['page_extension'] = '.htm';
#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';
This allowed my page extensions and url to change to eg http://test.com/test.htm but this page was throwing up an error saying it could not be found. The page is still available under the default http://test.com/index.php?page=test.
Does anyone have any insight into where I'm going wrong?
Thanks
Chris