Custom Routing

edited June 2011 in Modules
I'm trying to build a custom routing scenario for my website. I'd like for a person to enter site.com/%wildcard% and if that wildcard url segment (only one segment) doesn't equal a value in a separate table in the DB, then it will look use the default FuelCMS routing. Any idea where I should start with this?

Comments

  • edited 10:32PM
    You will probably need to modify the fuel/modules/fuel/controllers/page_router.php. That is the 404_override controller which is used when now controller is found and is where the logic is for FUEL to either pull from the database or from a view file automatically.
  • edited 10:32PM
    So would I only modify the _remap function? that seems to be the default function in the controller
  • edited 10:32PM
    That would be a good place to start. You could create a different controller that extends the page_router controller and change your 404_override controller to point to that instead of changing the page_router file.
Sign In or Register to comment.