Welcome Guest, Not a member yet? Register   Sign In
URL Not Found
#1

[eluser]Wondering Coder[/eluser]
I was using xampp before but switch to individual setup for php-mysql. In my xampp everything works perfectly. But when I migrated my code to my new setup I can't login to my application.

This is the step
Code:
1. http://localhost/login - //user input username & password
2. http://localhost/login/validate_credentials - //error occurred URL NOT FOUND: localhost/login/validate_credentials

I traced the problem this what I found out. If I add index.php as the 1st segment(http://localhost/index.php/login/validate_credentials) in my uri I am now able to login. But what is really mess up is I can't access all my other methods without adding index.php first. So I guess my problem is my htaccess.

This is my htaccess:
Code:
RewriteEngine on
    
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule (.*) index.php/$1 [L]

I still don't understand how the htaccess work so I can't modify it to fit my application. So can anyone help me out here.


Messages In This Thread
URL Not Found - by El Forum - 08-18-2011, 10:40 AM
URL Not Found - by El Forum - 08-18-2011, 11:58 AM
URL Not Found - by El Forum - 08-18-2011, 02:04 PM
URL Not Found - by El Forum - 08-18-2011, 02:37 PM
URL Not Found - by El Forum - 08-18-2011, 04:17 PM



Theme © iAndrew 2016 - Forum software by © MyBB