not being redirected to missing.html

Need help with something HTML related, this is the place to ask.
Post Reply
Thunderbob
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 yourtechview.com/grherugohg8t45oh8.php then it would redirected to missing.html.

Now it's not. Is this even an html issue?
this is missing.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<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="http://p3nlhclust404.shr.prod.phx3.secu ... styles.css" rel="stylesheet" type="text/css" media="screen" />

</head>

<body>
<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>
<ol>
<li>1) You entered an incorrect URL into your browser's address bar, or</li>
<li>2) You haven't uploaded content.</li>
</ol></div>
<div class="site-visitor-404">
<h3>If you're a <strong>visitor</strong> and not sure what happened:</h3>
<ol>
<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>
</ol></div>
</div>
</div>
</div>
</body>
</html>
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
DomC
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: https://github.com/DomTC
Thunderbob
Posts: 46
Joined: Sat Jun 30, 2012 12:31 pm

Re: not being redirected to missing.html

Post by Thunderbob »

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
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
SMTP = relay-hosting.secureserver.net
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

;[Zend]
;zend_optimizer.optimization_level=15
;zend_extension_manager.optimizer=/usr/local/Zend/lib/Optimizer-3.3.3
;zend_extension_manager.optimizer_ts=/usr/local/Zend/lib/Optimizer_TS-3.3.3
;zend_extension=/usr/local/Zend/lib/Optimizer-3.3.3/ZendExtensionManager.so
;zend_extension_ts=/usr/local/Zend/lib/Optimizer_TS-3.3.3/ZendExtensionManager_TS.so


; -- 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
Helx
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:
ErrorDocument 404 /missing.html
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 http://website.com/real_folder/erajhesb ... tekjrh.php .
Post Reply