Page 1 of 1

[Solved]Top menu displays correctly but doesn't work

Posted: Thu Jun 02, 2011 1:49 pm
by jasnick
Using CMSMS 1.9.4.2.
Site is in a sub-dir "name" of test site "test".


Using Vista Button menu that displays correctly and the hover works but returns a
"Not Found - The requested URL was not found on this server" message when any link is clicked.

Menu has 2 levels. Not sure how to add it to template - just using {menu} at present.

Added a footer_menu which also displays correctly and works when the pages have content - only Home and Membership have content at the moment.

Can't understand why one works and not the other. This is the first 2 level menu I have done in CMSMS - single level menus have worked in the past.

Thanks

Re: Top menu displays correctly but doesn't work

Posted: Thu Jun 02, 2011 4:22 pm
by M@rtijn
The pages that work use a .html extensions, those that don't use a .php

Have you already copied that htaccess from "doc" to your root?

What is your setting for
$config['page_extension'] = '';
Is it .html or .php?
What happens if you leave it empty, like the example above?

Re: Top menu displays correctly but doesn't work

Posted: Fri Jun 03, 2011 5:35 am
by jasnick
M@rtijn wrote:
Have you already copied that htaccess from "doc" to your root?
Yes
What is your setting for $config['page_extension'] = '';
From config:

#Extension to use if you're using mod_rewrite for pretty URLs.
$config['page_extension'] = '';

That is the setting currently
Is it .html or .php?
Neither

From htaccess:

<IfModule mod_rewrite.c>
RewriteEngine on
#
#Sub-dir e.g: /cmsms
RewriteBase /sitename


Thanks
[Later]

I think the problem has come about because I copied the Vista Buttons nav from the current online site.This site has a custom designed CMS that I had outsourced. My colleague has since retired so I am switching the site to CMSMS so I can manage it in the future. The primary nav pages are html but the secondary level is php as these pages are part of the old CMS. I do not know php. Is it enough to change the file extension in the code from php to html? Or start again completely?

I have done several sites in CMSMS now with no problems but they all had one level nav and no previous CMS to complicate things.

Thanks

Re: Top menu displays correctly but doesn't work

Posted: Mon Jun 06, 2011 1:30 am
by jasnick
In case anyone is following this thread, I solved the issue.
I had substituted .html for the .php in the path, but it still didn't work.

Then realising that setting for $config['page_extension'] = ''; I dropped the .html extension and then it worked.