not being redirected to missing.html

Need help with something HTML related, this is the place to ask.
Post Reply
Posts: 46
Joined: Sat Jun 30, 2012 12:31 pm

not being redirected to missing.html

Post by Thunderbob »

I'm registered with godaddy and in my root directory is missing.html. Until yesterday if anyone tried to edit the header to some bogus location such as then it would redirected to missing.html.

Now it's not. Is this even an html issue?
this is missing.html
[syntax=xhtml]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
<html xmlns="">

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>404 (Page Not Found) Error - Ever feel like you're in the wrong place?</title>
<link href="" rel="stylesheet" type="text/css" media="screen" />


<div class="body-404">
<h1><span>Ever feel you're in the wrong place</span></h1>
<div class="info-container">
<div class="inner-border clear-fix">
<h2 class="info-top">404 (Page Not Found) Error</h2>
<div class="site-owner-404">
<h3>If you're the <strong>site owner,</strong> one of two things happened:</h3>
<li>1) You entered an incorrect URL into your browser's address bar, or</li>
<li>2) You haven't uploaded content.</li>
<div class="site-visitor-404">
<h3>If you're a <strong>visitor</strong> and not sure what happened:</h3>
<li>1) You entered or copied the URL incorrectly or</li>
<li>2) The link you used to get here is faulty.</li>
<li class="last">(It's an excellent idea to let the link owner know.)</li>

ON some pages when I edit the header I get "No input file selected" instead of being redirected to the error 404 not found page.
User avatar
Posts: 91
Joined: Mon Jul 18, 2011 1:58 pm

Re: not being redirected to missing.html

Post by DomC »

In your site root, you should have a '.htaccess' file. Can you post the content of that as well, as that could also be a problem.
I can't think of anything witty to put here!

Check out some of my projects on GitHub:
Posts: 46
Joined: Sat Jun 30, 2012 12:31 pm

Re: not being redirected to missing.html

Post by Thunderbob »

[syntax=php]AuthType Basic
AuthName "User Backups"
AuthUserFile /home/content/66/9481266/html/stats/.statspwd
require valid-user
Options +Indexes

This was not located under the root folder but under db_backups

[syntax=php]register_globals = off
allow_url_fopen = off

expose_php = Off
max_input_time = 60
variables_order = "EGPCS"
extension_dir = ./
upload_tmp_dir = /tmp
precision = 12
url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=,fieldset="

; Only uncomment zend optimizer lines if your application requires Zend Optimizer support


; -- Be very careful to not to disable a function which might be needed!
; -- Uncomment the following lines to increase the security of your PHP site.

;disable_functions = "highlight_file,ini_alter,ini_restore,openlog,passthru,
; phpinfo, exec, system, dl, fsockopen, set_time_limit,
; popen, proc_open, proc_nice,shell_exec,show_source,symlink"

this was my php.ini

I have not altered with these files at all.
User avatar
Posts: 350
Joined: Thu May 17, 2012 6:45 am
Location: Auckland, New Zealand

Re: not being redirected to missing.html

Post by Helx »

Not too sure if the problem was fixed at all, but its just one line you can add to your .htaccess file:

[syntax=text]ErrorDocument 404 /missing.html[/syntax]

The only downside to it is that you will have to add this to every sub directory, should you want them to be redirected if they attempt to access ... tekjrh.php .
Post Reply