CodeIgniter Forums
Default URL behaviour - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: Default URL behaviour (/showthread.php?tid=2483)



Default URL behaviour - El Forum - 08-08-2007

[eluser]bikuta[/eluser]
I read from the documentation that the default behaviour for URL is something like:
www.your-site.com/index.php/news

However this doesn't work instead I have to use this:
www.your-site.com/index.php?news

Anyone know what could be the reason for this?


Default URL behaviour - El Forum - 08-08-2007

[eluser]Code Arachn!d[/eluser]
What are your server specs?


Default URL behaviour - El Forum - 08-08-2007

[eluser]bikuta[/eluser]
Server has the following:
PHP 4.3.11
Apache 2.0.40
MySQL 3.23.58

Was there something you needed in particular?

Also I'm not using any .htaccess file.


Default URL behaviour - El Forum - 08-08-2007

[eluser]Code Arachn!d[/eluser]
I'm going to bet off hand that AcceptPathInfo is set to off on your server. So if you don't have access to your config file - then place the following in your .htaccess

Code:
<Files "index.php">
AcceptPathInfo On
</Files>



Default URL behaviour - El Forum - 08-09-2007

[eluser]bikuta[/eluser]
Code Arachn!d you are a genius!
It works now. Hopefully I won't run into any more problems.

Cheers.


Default URL behaviour - El Forum - 08-09-2007

[eluser]Code Arachn!d[/eluser]
Thanks for the vote of confidence - I wish I could take credit but I think CoolFactor was the one who found this originally...