Page 2 of 2

Re: [SOLVED]Links in menu lead to 404 error message--page not found

Posted: Thu Jul 17, 2008 3:52 am
by complete
It seems that I forgot to add the .htaccess file to the cms root directory.  My .htaccess file looks like this:

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]
Note that my config.php contains:

Code: Select all

$config['query_var'] = 'page';
Now I can set:

Code: Select all

$config['use_hierarchy'] = true;
and I don't get the 404 error any more.

Mike