CodeIgniter Forums
Routing with dynamic Event ID in URL for event managment system - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Routing with dynamic Event ID in URL for event managment system (/showthread.php?tid=54435)

Pages: 1 2


Routing with dynamic Event ID in URL for event managment system - El Forum - 09-08-2012

[eluser]PhilTem[/eluser]
Well, that must be done with mod_rewrite in a .htaccess on your somedomain.com server. Or with a header-redirect in a index.php on the somedomain.com server.


Routing with dynamic Event ID in URL for event managment system - El Forum - 09-08-2012

[eluser]Saquib[/eluser]
[quote author="PhilTem" date="1347130731"]Well, that must be done with mod_rewrite in a .htaccess on your somedomain.com server. Or with a header-redirect in a index.php on the somedomain.com server.[/quote]

If i am using a .htaccess it mode_rewrite I think the domain must be hosted with same hosting. But with header-redirect people can see where they have been taken in URL which i don't want.

I have searched & found that it can be done using something called CNAME record in dns.

If somebody knows how I can point my urls like below

Quote:I want to people can access event website (which is unique for every event) by typing
Code:
www.somedomain.com
            which will be pointing at
    www.event-backend.com/website/EVENt_ID

or
Code:
www.somedomain.com/registration
            which will be pointing at
    www.event-backend.com/website/EVENt_ID/registration

Thank you guys for your support Smile