• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Scope of a CMS

#6
[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/

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.


Messages In This Thread
Scope of a CMS - by El Forum - 01-07-2010, 04:40 PM
Scope of a CMS - by El Forum - 01-07-2010, 11:39 PM
Scope of a CMS - by El Forum - 01-08-2010, 03:33 AM
Scope of a CMS - by El Forum - 01-08-2010, 04:14 AM
Scope of a CMS - by El Forum - 01-08-2010, 07:09 AM
Scope of a CMS - by El Forum - 01-08-2010, 07:54 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.