How to make codeIgniter as SEO url friendly |
[eluser]Unknown[/eluser]
Code: CREATE TABLE IF NOT EXISTS `url_alias` ( Create a table like the above alias: field says the normal browser url like http://praveenkumar.org/ci/code-igniter-seo.html in this field we make a entry like ci/code-igniter-seo.html When the user enter this url in the browser direct the system to router.php in CodeIgniter there create a function with returns the actual controller/action path Code: function return_url($alise){ If there is no perfect match with the table follow the normal work flow of CI. If still there is no match page it will direct to 404 page with appropriate design. |
Welcome Guest, Not a member yet? Register Sign In |