CodeIgniter Forums
URI Problem Please Help - 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: URI Problem Please Help (/showthread.php?tid=2225)



URI Problem Please Help - El Forum - 07-23-2007

[eluser]n00bPhpCoder[/eluser]
Hi i just uploaded my first CI App on my web host. But it seems that i am having problems with the uri.

On my local machine all URL are working fine. using apache 2.2/php5.x

on my webhost i it is running Apache 1.3.37/php 4.4.2

Is there a known issue to this or i have to configure something somewhere pls help

Sad(


URI Problem Please Help - El Forum - 07-23-2007

[eluser]n00bPhpCoder[/eluser]
BTW, CI gives me its own 404 Error not the the common server 404. Sad


URI Problem Please Help - El Forum - 07-23-2007

[eluser]coolfactor[/eluser]
Quote:Ive tried the different URL Protocol. But it doesnt work. It can auto load my View which is home. But when i invoke it using a URL http://domain.com/index.php/Home it gives me a 404. Sad

You might want to play with the "uri_protocol" parameter inside config/config.php.


URI Problem Please Help - El Forum - 07-23-2007

[eluser]n00bPhpCoder[/eluser]
Using AUTO - 404
Using Path_info - 404
Using QUERY_STRING - it redirect me back to originating page. say im from home then i click on other links i am back at home again
Using ORIG_PATH_INFO gives the same thing like query string.

Sad(


URI Problem Please Help - El Forum - 07-23-2007

[eluser]coolfactor[/eluser]
[quote author="n00bPhpCoder" date="1185263876"]Using AUTO - 404
Using Path_info - 404
Using QUERY_STRING - it redirect me back to originating page. say im from home then i click on other links i am back at home again
Using ORIG_PATH_INFO gives the same thing like query string.

Sad([/quote]

If you want to PM me the site address, I'd like to take a look myself.


URI Problem Please Help - El Forum - 07-23-2007

[eluser]n00bPhpCoder[/eluser]
PMed You


URI Problem Please Help - El Forum - 07-23-2007

[eluser]coolfactor[/eluser]
Okay, I took a look and don't see a problem. From what I can tell, you don't have mod_rewrite configured corrected to allow "index.php" from being removed from the url.

- are you allowed to use .htaccess files on your site? do you know how?
- what RewriteRules do you have in there?

Here's the code I use on all of my sites:
Code:
<IfModule mod_rewrite.c>
Options +FollowSymLinks
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [QSA,L]
</IfModule>

There are some other ways to do it depending on your needs, but that has worked well for me.


URI Problem Please Help - El Forum - 07-23-2007

[eluser]n00bPhpCoder[/eluser]
sir i found out that the 404 is cause by case sensitivity in linux. On my other post, he suggest using

domain.com/index.php/home instead of Home. and it works fine. so what i did was change all links to small caps since my controllers are all small caps. and it works well.

Thank you for replying to my post. very much appreciated.


URI Problem Please Help - El Forum - 07-23-2007

[eluser]coolfactor[/eluser]
Right, case-sensitivity. Not sure why I didn't test for that.


URI Problem Please Help - El Forum - 07-24-2007

[eluser]FX[/eluser]
-- deleted with shame --