file_get_contents causes a 404 error |
After a bit more digging, I now understand.
In my Apache VirtualHost configuration, I had (among other things) Code: <VirtualHost *:80> Removing the ErrorDocument directive then caused a URL such as http://www.domain.com/storage/item/57d952d0a09d0 to break, whereas in the form http://www.domain.com/index.php/storage/item/57d952d0a09d0 it works properly. Having now also discovered the FallbackResource directive, my VirtualHost will look more like Code: <VirtualHost *:80> since the fallback means there should never be a 404... So now everything is working as I expected it to with my first cut code. Happy days. Hopefully this information will ease someone else's pain in the future... Best wishes, Gordon |
Messages In This Thread |
file_get_contents causes a 404 error - by gordski68 - 09-15-2016, 05:59 AM
RE: file_get_contents causes a 404 error - by dave friend - 09-15-2016, 06:53 AM
RE: file_get_contents causes a 404 error - by salain - 09-15-2016, 06:59 AM
RE: file_get_contents causes a 404 error - by gordski68 - 09-16-2016, 02:04 AM
RE: file_get_contents causes a 404 error - by dave friend - 09-15-2016, 07:42 AM
RE: file_get_contents causes a 404 error - by gordski68 - 09-16-2016, 02:26 AM
RE: file_get_contents causes a 404 error - by gordski68 - 09-16-2016, 02:53 AM
RE: file_get_contents causes a 404 error - by gordski68 - 09-16-2016, 04:28 AM
|