Re: [SOLVED]Links in menu lead to 404 error message--page not found
Posted: Thu Jul 17, 2008 3:52 am
It seems that I forgot to add the .htaccess file to the cms root directory. My .htaccess file looks like this:
Note that my config.php contains:
Now I can set:
and I don't get the 404 error any more.
Mike
Code: Select all
#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]
Code: Select all
$config['query_var'] = 'page';
Code: Select all
$config['use_hierarchy'] = true;
Mike