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

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
complete
New Member
New Member
Posts: 2
Joined: Thu Jul 17, 2008 2:02 am

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

Post 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
Locked

Return to “CMSMS Core”