01-08-2010, 07:54 AM
[eluser]da_n[/eluser]
You should be able to re-map this, there is a blog post which shows a method for it here:
http://bizwidgets.biz/web-design/codeign...rls-short/
This should work but will need some adaptation to fit with your CMS structure.
You should be able to re-map this, there is a blog post which shows a method for it here:
http://bizwidgets.biz/web-design/codeign...rls-short/
Quote:Open up your routes.php file inside the application/config folder in your CI app and add the following line to the end of the routes.php file:
Code:$route['^(?!ezstore|ezsell|login).*'] = “home/$0″;
This line uses a regular expression that means, If a visitor goes to any url EXCEPT ezstore, ezsell, or login, redirect them to the home controller, and the function inside the home controller ($0). This way, every time we call a function from the home controller, such as contact, about_us, services, etc., we can snip home out of the URL and keep our URLs short and pretty.
This should work but will need some adaptation to fit with your CMS structure.