Codeigniter 404 error on IIS7 - codeigniter

When I try to go to
localhost/myproj/user
it gives me a 404 error, but when I type
localhost/myproj/index.php/user
It works
How can I fix this? thanks in advance.

Related

How to hide Laravel's 405 Method Not Allowed error screen?

When directly accessing a URL which use Route::post(), Laravel shows the following 405 Method Not Allowed error screen:
Oops! An Error Occurred
The server returned a "405 Method Not Allowed".
Something is broken. Please let us know what you were doing when this error occurred. We will fix it as soon as possible. Sorry for any inconvenience caused.
I think it is not good to give bad people information about the correct method. Am I right?
How to hide 405 Method Not Allowed error screen and show 404 Not Found error instead?
It is better to configure .env or Laravel than to configure nginx or apache.
And I don't want to write 404 error redirect in every controller methods.
I want to hide the error screen only in the production because it is good to know that method is not correct while developing (debug mode is on).
Thanks to #Don'tPanic in the comments of my question, I found the answer.
Laravel offers the option to hide 405 error screen.
You can change 405 error to 404 error and display 404 Not Found error page instead of 405 error page without writing code in every controller action method.
For more detail, see the answer and documentation below:
how to handle 405 error for displaying as webpage laravel
The Render Method
https://laravel.com/docs/5.8/errors#render-method

Laravel dusk asserting for 404 errors

I'm trying to use laravel dusk to test for 404 not found error. Specifically when loading an image. After reading the laravel dusk documentation I've found no asserts that could help me test if a 404 exception occurs.
Is there a good way of getting a browser test to know whether a resource has failed loading or is it simply not possible?
There is intentionally no way to access HTTP status codes:
https://github.com/laravel/dusk/issues/422
https://github.com/facebook/php-webdriver/issues/470
You can use browser -> driver -> manage() -> getLog('browser') to get the log and see if there is a 404 Error

Error while installing laravel

I got this error while installing laravel in composer. The message is AUTHENTICATION REQUIRED (PACKAGIST.ORG).
I read all the reference but still not working.. Anyone who knows how to solve this error?
Thanks in advance :D

Method Not Implemented PhpMyAdmin

Getting this error when clicking the edit button for a record in phpmyadmin
Method Not Implemented
GET to /_pma/tbl_change.php not supported.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Could this be a problem with "mod_security" and if so, what is "mod_security" and how could we fix it?
If not, what could be causing this problem?
Thanks!
Try installing the newest version of phpMyAdmin on your server. If you are running it via XAMPP, also download the newest version of it. I had the same problem and that solved it for me.

Magento HTTP Error 500 on Success Page

Getting a HTTP Error 500 (Internal Server Error) on the success page after a successful checkout.
This is after an upgrade from 1.4.0.1 to 1.5.1.0.
This might be due to a template issue .. Maybe something change in the XML?
Any ideas would be greatly appreciated.
It's likely you've got PHP locked down to serve a 500 on a fatal error. Your best best is to check the error log for your web server.

Resources