Timeline for .htaccess 404 error not working while accessing file without extension
Current License: CC BY-SA 4.0
9 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Aug 6, 2024 at 5:52 | vote | accept | Pranav Mankar | ||
| Aug 6, 2024 at 5:49 | vote | accept | Pranav Mankar | ||
| Aug 6, 2024 at 5:51 | |||||
| Aug 6, 2024 at 4:35 | comment | added | arkascha | OK, thanks for clearing things up, @MrWhite. So the "rule" said not to work does not actually refer to the RewriteRule, but to the ErrorDocument directive. | |
| Aug 5, 2024 at 16:35 | comment | added | MrWhite | @arkascha They are getting the simple response "File not found" (literal text), rather than the expected contents of /404.php. | |
| Aug 5, 2024 at 16:22 | answer | added | MrWhite | timeline score: 2 | |
| Aug 5, 2024 at 16:21 | comment | added | arkascha | I fail to understand what the issue is here. Certainly you will receive a 404 if neither /home1 nor /home1.php exists. That is to be expected and correct. Why do you say " htaccess rule not working here"? To me it looks like the rule does get applied, but /home1.php does not exist. What else should the server respond, if not a 404? | |
| Aug 5, 2024 at 14:48 | history | edited | Pranav Mankar | CC BY-SA 4.0 | added 27 characters in body |
| S Aug 5, 2024 at 14:45 | review | Triage | |||
| Aug 5, 2024 at 16:37 | |||||
| S Aug 5, 2024 at 14:45 | history | asked | Pranav Mankar | CC BY-SA 4.0 |