Go Back   HostGator Peer Support Forums > HostGator Peer Support Forums > Shared Hosting Support

Notices

Reply
 
Thread Tools
  #1  
Old 08-18-2007, 10:32 AM
dougeby dougeby is offline
Hatchling Croc
 
Join Date: Aug 2007
Posts: 15
Question 404.shtml question

No matter what I change my 404 to, it continues to show my home page. I don't want this. Perhaps I'm totaly "daft". What am I missing?

Reply With Quote
  #2  
Old 08-18-2007, 10:41 AM
Sam Sam is offline
Emperor Croc
 
Join Date: Jan 2007
Location: /bin/false
Posts: 3,057
Default Re: 404.shtml question

Where are you redirecting 404 errors to? (look for 'ErrorDocument 404 /page.shtml' in .htaccess)
Reply With Quote
  #3  
Old 08-18-2007, 10:54 AM
dougeby dougeby is offline
Hatchling Croc
 
Join Date: Aug 2007
Posts: 15
Default Re: 404.shtml question

Eeeek. This baby croc is now out of his league. This is what is in my .htaccess
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /~dseby/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /~dseby/index.php [L]
</IfModule>
# END WordPress
Reply With Quote
  #4  
Old 08-18-2007, 10:59 AM
Sam Sam is offline
Emperor Croc
 
Join Date: Jan 2007
Location: /bin/false
Posts: 3,057
Default Re: 404.shtml question

Add: ErrorDocument 404 /404.shtml
on a new line at the bottom of your .htaccess file, and save.. and when you go to a page that dont exist then it will display whatever you put in 404.shtml
Reply With Quote
  #5  
Old 08-18-2007, 11:06 AM
dougeby dougeby is offline
Hatchling Croc
 
Join Date: Aug 2007
Posts: 15
Default Re: 404.shtml question

Hope you don't mind my "newbieness", but I guess that requires some kind of code around it?
Reply With Quote
  #6  
Old 08-18-2007, 11:08 AM
Sam Sam is offline
Emperor Croc
 
Join Date: Jan 2007
Location: /bin/false
Posts: 3,057
Default Re: 404.shtml question

Quote:
Originally Posted by dougeby View Post
Hope you don't mind my "newbieness", but I guess that requires some kind of code around it?
No. this is what your .htaccess file should look like:

Code:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /~dseby/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /~dseby/index.php [L]
</IfModule>
# END WordPress

ErrorDocument 404 /404.shtml
Reply With Quote
  #7  
Old 08-18-2007, 11:25 AM
dougeby dougeby is offline
Hatchling Croc
 
Join Date: Aug 2007
Posts: 15
Default Re: 404.shtml question

Thanks for your help and patience,

I still get my home page. I am trying to figure this on my own but having no luck. I don't want to become anoying.
Does the 404.php file have anything to do with this?

Last edited by dougeby; 08-18-2007 at 11:49 AM.
Reply With Quote
  #8  
Old 08-18-2007, 12:07 PM
dougeby dougeby is offline
Hatchling Croc
 
Join Date: Aug 2007
Posts: 15
Default Re: 404.shtml question

This is what I have....
.htaccess is

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /~dseby/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /~dseby/index.php [L]
</IfModule>
# END WordPress
ErrorDocument 404 /404.shtml

404.shtml is

<!--#echo var="REMOTE_ADDR" -->
<!--

-->

Do I need to fill it in?
Reply With Quote
  #9  
Old 08-18-2007, 12:27 PM
rota919 rota919 is offline
Swamp Croc
 
Join Date: Jan 2007
Location: Armagh, Northern Ireland
Posts: 323
Default Re: 404.shtml question

Quote:
Originally Posted by dougeby View Post
404.shtml is

<!--#echo var="REMOTE_ADDR" -->
<!--

-->

Do I need to fill it in?
Yea you need something in the page. If it is blank it is going to show a big blank.
Just design your page in normal HTML and save it as 404.shtml.

You can also create one from CPanel.
__________________
Fred
Reply With Quote
  #10  
Old 08-18-2007, 12:53 PM
dougeby dougeby is offline
Hatchling Croc
 
Join Date: Aug 2007
Posts: 15
Default Re: 404.shtml question

Think I'll pull my hair out...lol

My 404.shtml is now

<html>
<head>
<title>No Such Page Exists</title>
<meta name="generator" content="Namo WebEditor">
</head>
<body bgcolor="white" text="black" link="blue" vlink="purple" alink="red">
<p align="center"><b><font size="6" color="maroon">No Such Page Exists</font></b></p>
<p align="center"><font size="4" color="maroon"><b><a href="http://www.saddhelp.com/" target="_top">Return to SADDHelp.com</a></b></font></p>
</body>
</html>

It's like the 404.shtml doesn't exist
Reply With Quote
  #11  
Old 08-18-2007, 12:56 PM
Sam Sam is offline
Emperor Croc
 
Join Date: Jan 2007
Location: /bin/false
Posts: 3,057
Default Re: 404.shtml question

Quote:
Originally Posted by dougeby View Post
It's like the 404.shtml doesn't exist
You have actualy uploaded it to your public_html folder havent you? do you have a link we can try?
Reply With Quote
  #12  
Old 08-18-2007, 01:01 PM
dougeby dougeby is offline
Hatchling Croc
 
Join Date: Aug 2007
Posts: 15
Default Re: 404.shtml question

Sure.

This is my site http://www.saddhelp.com/
Put anything you like on the end and you will still get the main page.

I'm confused

And yes, I did upload it to public_html Should have mentioned that I guess.

Last edited by dougeby; 08-18-2007 at 01:21 PM.
Reply With Quote
  #13  
Old 08-18-2007, 01:47 PM
Dwight Dwight is offline
Swamp Croc
 
Join Date: Apr 2005
Posts: 344
Default Re: 404.shtml question

Quote:
Originally Posted by dougeby View Post
Sure.

This is my site http://www.saddhelp.com/
Put anything you like on the end and you will still get the main page.

I'm confused

And yes, I did upload it to public_html Should have mentioned that I guess.
Hmm.. well, the 404.shtml page is there, because I accessed it directly. And you are right, it's not working as it should. I can only guess your .htaccess file isn't right.

Have you asked support for help?
Reply With Quote
  #14  
Old 08-18-2007, 02:03 PM
dougeby dougeby is offline
Hatchling Croc
 
Join Date: Aug 2007
Posts: 15
Default Re: 404.shtml question

Haven't asked support yet. Wanted to get rid of any dumb things I might be doing first. Could it have anything to do with using WordPress themes?
Reply With Quote
  #15  
Old 08-18-2007, 02:40 PM
othellobloke othellobloke is offline
Banned User
 
Join Date: Mar 2006
Location: Kenora, Ontario
Posts: 708
Default Re: 404.shtml question

Dougeby...

you need to go into your wordpress control panel and update the URI to http://www.saddhelp.com.

it's currently set at http://74.53.227.178/~dseby/ Why are you referencing that url instead of http://www.saddhelp.com/wp-content/themes etc... ?

Post the content of your 404.php in your theme directory AND your htaccess again.

Wordpress can handle all of your errors so you don't need the 404.shtml

Last edited by othellobloke; 08-18-2007 at 02:44 PM.
Reply With Quote
  #16  
Old 08-18-2007, 02:59 PM
dougeby dougeby is offline
Hatchling Croc
 
Join Date: Aug 2007
Posts: 15
Default Re: 404.shtml question

Ok changed my WordPress adress to www.saddhelp.com, that didn't make the change.

404.php is

<?php get_header(); ?>
<div id="container" class="clearfix">
<div id="leftnav">
<?php get_sidebar(); ?>
</div>
<div id="rightnav">
<?php include (TEMPLATEPATH . '/sidebar2.php'); ?>
</div>
<div id="content">
<h3 class="center">Error 404 - Not Found</h3>
</div>
<?php get_footer(); ?>
</div>
</body>
</html>

and .htaccess is

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /~dseby/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /~dseby/index.php [L]
</IfModule>

# END WordPress

ErrorDocument 404 /404.shtml
Reply With Quote
  #17  
Old 08-18-2007, 04:20 PM
rec9140 rec9140 is offline
Junior Croc
 
Join Date: Jun 2007
Posts: 137
Default Re: 404.shtml question

Quote:
Originally Posted by dougeby View Post
Ok changed my WordPress adress to www.saddhelp.com, that didn't make the change.

404.php is

and .htaccess is


ErrorDocument 404 /404.shtml
If your using 404.php as the error handler page then:

ErrorDocument 404 /404.php

should be your line,
Reply With Quote
  #18  
Old 08-18-2007, 05:05 PM
dougeby dougeby is offline
Hatchling Croc
 
Join Date: Aug 2007
Posts: 15
Default Re: 404.shtml question

OH Wow!!

I always take the long way around. So what I need to be doing is editing the 404.php in themes, it needs to be told to find the custom page?
Reply With Quote
  #19  
Old 08-18-2007, 06:21 PM
othellobloke othellobloke is offline
Banned User
 
Join Date: Mar 2006
Location: Kenora, Ontario
Posts: 708
Default Re: 404.shtml question

Erase EVERYTHING from your htaccess - put the following:

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress

Last edited by othellobloke; 08-18-2007 at 06:24 PM.
Reply With Quote
  #20  
Old 08-18-2007, 09:31 PM
dougeby dougeby is offline
Hatchling Croc
 
Join Date: Aug 2007
Posts: 15
Default Re: 404.shtml question

Thanks othello
Tried that too, but nope. There must be something in this theme that I'm not finding or understanding in order to make this change.

About ready to call an end to this FUN.
Reply With Quote
  #21  
Old 08-19-2007, 12:11 AM
othellobloke othellobloke is offline
Banned User
 
Join Date: Mar 2006
Location: Kenora, Ontario
Posts: 708
Default Re: 404.shtml question

Check your private messages.
Reply With Quote
  #22  
Old 08-19-2007, 06:19 AM
eLIANT eLIANT is offline
King Croc
 
Join Date: Apr 2005
Posts: 1,075
Default Re: 404.shtml question

Isn't this:
Quote:
Originally Posted by othellobloke View Post
# BEGIN WordPress
.
.
.
RewriteRule . /index.php [L]
.
.
.
# END WordPress
sending every manually entered URL to "index.php?"
__________________

eLIANT Technology Services
(site feedback welcome)
Reply With Quote
  #23  
Old 08-19-2007, 10:01 AM
Sam Sam is offline
Emperor Croc
 
Join Date: Jan 2007
Location: /bin/false
Posts: 3,057
Default Re: 404.shtml question

Quote:
Originally Posted by eLIANT View Post
Isn't this:
sending every manually entered URL to "index.php?"
Oh yes, i think it is
Reply With Quote
  #24  
Old 08-19-2007, 10:56 AM
dougeby dougeby is offline
Hatchling Croc
 
Join Date: Aug 2007
Posts: 15
Default Re: 404.shtml question

Hmmmm.... I can tell ya it didn't work.

Thanks for all the help everyone. It is something about the theme itself. Changing the themes 404.php doesn't even work, it just ignores it. I now have someone looking at it, too correct this.
I'll let you know the solution, if it's found, in case anyone else has this problem occur.

Thanks again,
Doug
Reply With Quote
  #25  
Old 08-19-2007, 03:09 PM
slapshotw's Avatar
slapshotw slapshotw is offline
Veteran Croc
 
Join Date: Jun 2006
Posts: 5,164
Default Re: 404.shtml question

Quote:
Originally Posted by eLIANT View Post
Isn't this:
sending every manually entered URL to "index.php?"
I know a lot of CMSes that work this way, textpattern's .htaccess is very similar. The person doesn't actually see index.php in their address bar, but all the directives for which content to serve are done through it.
__________________
Follow me on Twitter! http://twitter.com/mrw
Reply With Quote
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -5. The time now is 03:07 PM.