Welcome Guest, Not a member yet? Register   Sign In
URL hiding in codeigniter
#1

[eluser]Unknown[/eluser]
How can hide file extension in URL in codeigniter.

Thanks in advance.
#2

[eluser]natefons[/eluser]
if im not mistaken theres a config option to add extensions to files.
#3

[eluser]ELRafael[/eluser]
[quote author="natefons" date="1282946977"]if im not mistaken theres a config option to add extensions to files.[/quote]

no, you aren't wrong :lol:

./system/application/config.php
Code:
$config['url_suffix'] = ".html";

CI comes without extension. You'll need to change this value. You can put anything inside that, ".html", ".aspx", ".wtf", ".etc"

If you are talking about www.tld.com/index.php/controller_name/method_name, I suggest to look about .htacess.
User guide : http://ellislab.com/codeigniter/user-gui.../urls.html




Theme © iAndrew 2016 - Forum software by © MyBB