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.
#2

[eluser]Wondering Coder[/eluser]
anyone? I can only think of 2 possible cause: my htaccess and my apache configuration. but if anyone else faced this problem and solved it please enlighten me. I'll accept any suggestion and violent reaction Tongue
#3

[eluser]Wondering Coder[/eluser]
nvmind, after 3 and half hrs of googling finally solve my problem.
#4

[eluser]soupli[/eluser]
What was the solution for this problem? Please share these solutions… that is one of the reasons why these forums are here. Thanks in advance!
#5

[eluser]Wondering Coder[/eluser]
apache configuration. The docs in the apache didn't said to Allowoverride All twice. Spent so much time finding out the solution. Even red the thread that was posted 2007, (>.<). I thought the problem was my htaccess but it's the apache. haha.




Theme © iAndrew 2016 - Forum software by © MyBB