-2

I am developing an event management system using PHP Codeigniter and MySQL where I am not sure how i can solve below issues

ISSUE 1

I want to make URL for back end like

www.event-backend.com/event/EVENt_ID (for dashboard)
www.event-backend.com/event/EVENt_ID/registration
www.event-backend.com/event/EVENt_ID/travel
and so on

and by changing the EVENT_ID i can open different event

But in codeigniter how I can do it, second param will be a method of controller, i need it dynamic. what will be the routing ?

ISSUE 2

I want to people can access event website (which is unique for every event) by typing

  www.somedomain.com  
     which will be pointing at 
  www.event-backend.com/website/EVENt_ID

Issue 2 can be solved with some CNAME record, but I don't know how to do it

Please help

Saqueib
  • 3,484
  • 3
  • 33
  • 56

1 Answers1

0

U can use inner redirect for this purpose. For example like this:

RewriteEngine On
RewriteRule ^event/(.*)$ /event/controller/$1
StasGrin
  • 1,800
  • 2
  • 14
  • 30
  • Thanks Stas, is there any way i can accomplish same without htaccess, using codeigniter router or controller – Saqueib Sep 08 '12 at 12:13