blesseld Posted April 23, 2010 Share Posted April 23, 2010 Hey, I started working on my Simple CMS... and I understand how to create/store content to a db, however I am having a hard time trying to figure out how to put it all together. My main problem is using the title to create a file that will then load the db content. website.com/my-page.php where my-page.php is stored in an Articles directory, with an include of some sort to retrieve the content. Can anyone point me in a good direction? Thanks, all help is appreciated. Link to comment https://forums.phpfreaks.com/topic/199509-simple-cms-question/ Share on other sites More sharing options...
teamatomic Posted April 23, 2010 Share Posted April 23, 2010 Yes, dont use the title, its supposed to be descriptive and contain keywords. Instead use the page_name to get the stored contents. HTH Teamatomic Link to comment https://forums.phpfreaks.com/topic/199509-simple-cms-question/#findComment-1047336 Share on other sites More sharing options...
mrMarcus Posted April 23, 2010 Share Posted April 23, 2010 Yes, dont use the title, its supposed to be descriptive and contain keywords. Instead use the page_name to get the stored contents. HTH Teamatomic for SEO purposes, having your page name as the same as the title, because of the usage of relevant keywords, is standard. Link to comment https://forums.phpfreaks.com/topic/199509-simple-cms-question/#findComment-1047407 Share on other sites More sharing options...
teamatomic Posted April 24, 2010 Share Posted April 24, 2010 Didnt say dont use the page name in the title, said dont use the title for determining the page to display. index.php?page=about is a lot better than index.php?page=about the widget company and its board of misdirectors or having to parse out the content holder from the title. HTH Teamatomic Link to comment https://forums.phpfreaks.com/topic/199509-simple-cms-question/#findComment-1047438 Share on other sites More sharing options...
blesseld Posted April 29, 2010 Author Share Posted April 29, 2010 Ok, I understand that, But would: domain.tld/my-page-name.php be better than domain.tld/page.php?page=my-page-name or does it not matter Link to comment https://forums.phpfreaks.com/topic/199509-simple-cms-question/#findComment-1050595 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.