Jump to content

No input file specified


squiblo

Recommended Posts

my domain is squiblo.com

if i type into the url squiblo.com/kjbdvnbjf.php (basically something that does not exist) it comes up with that page saying "No input file specified" how can i change this message or link it to one of my other pages with a PHP script and where would i put the script?

Link to comment
https://forums.phpfreaks.com/topic/167300-no-input-file-specified/
Share on other sites

You may have the error document in your main html folder called 404.html, 404.shtml or something like that. Otherwise you need to specify ErrorDocument in .htaccess in order to point to another target file. You might have the option available in your control panel as well.

 

If you have dynamic content you may wish to redirect to the 404 document directly in your code as well in certain situations. If so, don't forget to send the 404 header first.

Make a .htaccess file and then put this into it

 

ErrorDocument 404 errorpage.html

 

Then create an errorpage.html (or whatever extension) and put content in it such as,

 

<!--- Quick HTML Example.. !--->
<HTML>
<TITLE>Page Not Found</TITLE>
<HEAD>
</HEAD>
<BODY>
<H1>This page has not been found!</H1> <BR /><BR />

Please <a href="/">return to main page</a>!

</BODY>
</HTML>

 

Good luck!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.