CodeIgniter Forums
How to make custom URL?? - 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: How to make custom URL?? (/showthread.php?tid=54742)



How to make custom URL?? - El Forum - 09-23-2012

[eluser]aniketharshe20[/eluser]
Hello,

I want to have a custom URL like domainname/#/topic
where topic is any string.

Currently I have domainname/topic , I have done this via routes.php
Code:
$route['(.*)'] = 'topic/view/$1';

so here view method of topic controller is called.

I want to have same thing but with # in the URL.

How can I achieve this??

Thanks,
Aniket