URI Problem Please Help |
[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 (
[eluser]n00bPhpCoder[/eluser]
BTW, CI gives me its own 404 Error not the the common server 404.
[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. You might want to play with the "uri_protocol" parameter inside config/config.php.
[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. (
[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. ([/quote] If you want to PM me the site address, I'd like to take a look myself.
[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> There are some other ways to do it depending on your needs, but that has worked well for me.
[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.
[eluser]coolfactor[/eluser]
Right, case-sensitivity. Not sure why I didn't test for that.
|
Welcome Guest, Not a member yet? Register Sign In |