CodeIgniter Forums
index.php - 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: index.php (/showthread.php?tid=3679)



index.php - El Forum - 10-16-2007

[eluser]nirbhab[/eluser]
Hi,

i am new to CodeIgniter.

i am currently working with URL.
http://localhost/index.php/CLASS/FUNCTION

my problem is that i want to remove this index.php from my urls and want to run classes
like this
http://localhost/CLASS/FUNCTION.
Please suggest something.

i can't work on .htaccess file, due to some server side restrictions.

Have a nice day!


index.php - El Forum - 10-16-2007

[eluser]yello[/eluser]
if you can't work with the .htaccess file I don't know if it is possible... normally you use the mod_rewrite to remove the index.php


index.php - El Forum - 10-16-2007

[eluser]fanxiaotao[/eluser]
I have the question too.

Hope somebody can give a good answer!


index.php - El Forum - 10-16-2007

[eluser]nirbhab[/eluser]
Shared Domains Hosting Companies doesn't provide an exception case for a single user to modify anything .htaccess file, they do it for security constraints, please somebody answer.
Have a nice day!


index.php - El Forum - 10-16-2007

[eluser]schnoodles[/eluser]
You can only do it through .htaccess or httpd.conf( which has even more restrictions ) if they wont add the rules in for you. Or you do not have access to it, unfortunately it cannot be done.