really simple menu/pages/content question

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.
Locked
docPedro

really simple menu/pages/content question

Post by docPedro »

hello-

first off this cms system rocks.

my question:
can someone tell me where the pages are that the links in the menu point to?

its so obvious that i am missing it. if i have a link in the menu that came from adding content in the 'Add Content' admin why when clicking that link is the page not found. do i need to upload a page? i thought the page was generated on the fly by the database etc..? i am totally lost on this (but everything else is going well, so far...)

thanks
KGarrett

Re: really simple menu/pages/content question

Post by KGarrett »

I, too am having this problem. I checked the previous settings, and they are set to use .html extension and mod_rewrite is "true".

Here is my site: www.dan-and.kelly.com

The links simply do not work. They're pointing to an .html page. I can't find them anywhere on my server. Any ideas??!?
tsw
Power Poster
Power Poster
Posts: 1408
Joined: Tue Dec 13, 2005 10:50 pm

Re: really simple menu/pages/content question

Post by tsw »

if you have in your config.php file something like this

Code: Select all

$config['assume_mod_rewrite'] = true;
$config['page_extension'] = '.htm';
You also need to copy htaccess file from /doc/ folder to your cmsms directory.

so what happens when page is created?
cmsms checks the config and sees assume_mod_rewrite and thinks OK I will make my links look like html files and get extension from page_extension configuration. All menu links now look something like http://server.com/page.html. Now your browser wants to go to that link and it sends http get message to apache to server that page for it. Apache sees .htaccess file and the rewrite rule in it and thinks OK I will look where this rewrite rule goes to and gets that address instead (something like http://server.com/index.php?page=page) and serves the content from there.

this way your browser gets right content from "wrong" address..

pros:
SEO friendly
Human readable

cons:
causes tiny amount overhead for apahce (this doesnt really matter :)
KGarrett

Re: really simple menu/pages/content question

Post by KGarrett »

I have those settings, etc. but am still getting the same problem. What should the CHMOD be for the access file?
Locked

Return to “CMSMS Core”