remove glabal variables and magic quotes, autoload classes, separates it out as $contrte url from index.php into yoursite.com/controllerName/actionName/queryString