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

Link to comment
Share on other sites

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!

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.