CodeIgniter Forums
url with extension for single page - 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: url with extension for single page (/showthread.php?tid=49384)



url with extension for single page - El Forum - 02-17-2012

[eluser]MartijnR[/eluser]
Hi,

I would like to show a file extension (.appcache) for a single url: mydomain.com/manifest.appcache (and continue to apply url hiding for the other pages)

I know there is a setting in config.php to change the url suffix site wide. I am wondering if there a built-in way to do this for a single controller/method or if using .htaccess is the best approach to achieve this.

Cheers,
Martijn




url with extension for single page - El Forum - 02-17-2012

[eluser]Aken[/eluser]
Just use a route!


url with extension for single page - El Forum - 02-17-2012

[eluser]MartijnR[/eluser]
Cool! I had never looked into routes. :cheese:

Thank you!