[solved] Pretty URL not working
Posted: Sat Dec 19, 2009 6:24 pm
Hello,
I am trying to get my site to use pretty url. Below are my settings in the config.php file:
$config['url_rewriting'] = 'mod_rewrite';
$config['page_extension'] = '.html';
$config['use_hierarchy'] = false;
$config['query_var'] = '';
However the pages are still coming up as http://www.website.com/index.php?page=anotherpage
What am i doing wrong?
One of the installation manuals says to include a .htaccess file in the root of the website.
The full content of .htaccess file is:
# 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 ^(.+).htm$ index.php?page=$1 [QSA]
Obviously i have messed up somewhere.
Please help.
Thanks.
EDIT: please add [solved] to subject line when it is...
I am trying to get my site to use pretty url. Below are my settings in the config.php file:
$config['url_rewriting'] = 'mod_rewrite';
$config['page_extension'] = '.html';
$config['use_hierarchy'] = false;
$config['query_var'] = '';
However the pages are still coming up as http://www.website.com/index.php?page=anotherpage
What am i doing wrong?
One of the installation manuals says to include a .htaccess file in the root of the website.
The full content of .htaccess file is:
# 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 ^(.+).htm$ index.php?page=$1 [QSA]
Obviously i have messed up somewhere.
Please help.
Thanks.
EDIT: please add [solved] to subject line when it is...