limeboxmedia Posted March 18, 2009 Share Posted March 18, 2009 I am creating a very basic CMS for a site I am working on. One thing I am doing is creating a MySQL system to hold the content and the sub-menus per page (for example, the "About Us" page includes different links about us... Or the Contact page gives people a contacts form or a list of staff (2 different links). I know in prominent CMS programs they have the ugly $_REQUEST variables in the url (?id=1234&cat=5435&header=087&etc=7654)... Is there a better solution to clean that up? I'd like to add session variables to check to see what page someone is on, but I know that's not really SEOed... I also know php frameworks exist out there (like CakePHP) that allow pretty urls (http://www.mysite.com/contact/email) ... Is there any easy to do that just using PHP? Meaning is there a way to mimic the pretty url thing without going to a framework program? Then finally, in the long run, are the framework programs a superior use of the language or from your experience, is using plain php/mysql a satisfactory alternative (I have been training in PHP but haven't yet had time to learn CakePHP). Thank you in advance for your responses, TJ Quote Link to comment Share on other sites More sharing options...
drisate Posted March 18, 2009 Share Posted March 18, 2009 This is what you wana do http://techie-buzz.com/ask-techie/create-seo-friendly-urls-using-mod-rewrite-and-php-part-1.html Quote Link to comment Share on other sites More sharing options...
WolfRage Posted March 18, 2009 Share Posted March 18, 2009 Cake only works as pretty if you have mod-rewrite and yes you can do mod-rewrite too. Also if you store the info in $_SESSION then yes it will be SEO friendly, because search engines hate get data. But with Sessions everything is stored on the server and only a cookie is passed back and forth to maintain state. Plus if you are using a cms, most likely it is already maintaining sessions for you, so you can define your own session variables with in this program as long as you do not conflict with any of their session variables. Quote Link to comment Share on other sites More sharing options...
limeboxmedia Posted March 18, 2009 Author Share Posted March 18, 2009 Thank you both for your help and suggestions! I now have a good place to start with and move forward on that! I really appreciate your time! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.