|
#1
|
|||
|
|||
|
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?
|
|
#2
|
|||
|
|||
|
Where are you redirecting 404 errors to? (look for 'ErrorDocument 404 /page.shtml' in .htaccess)
|
|
#3
|
|||
|
|||
|
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 |
|
#4
|
|||
|
|||
|
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 |
|
#5
|
|||
|
|||
|
Hope you don't mind my "newbieness", but I guess that requires some kind of code around it?
|
|
#6
|
|||
|
|||
|
Quote:
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
|
|
#7
|
|||
|
|||
|
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. |
|
#8
|
|||
|
|||
|
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? |
|
#9
|
|||
|
|||
|
Quote:
Just design your page in normal HTML and save it as 404.shtml. You can also create one from CPanel. |
|
#10
|
|||
|
|||
|
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
|
|
#11
|
|||
|
|||
|
You have actualy uploaded it to your public_html folder havent you? do you have a link we can try?
|
|
#12
|
|||
|
|||
|
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. |
|
#13
|
|||
|
|||
|
Quote:
Have you asked support for help? |
|
#14
|
|||
|
|||
|
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?
|
|
#15
|
|||
|
|||
|
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. |
|
#16
|
|||
|
|||
|
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 |
|
#17
|
|||
|
|||
|
Quote:
ErrorDocument 404 /404.php should be your line, |
|
#18
|
|||
|
|||
|
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? |
|
#19
|
|||
|
|||
|
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. |
|
#20
|
|||
|
|||
|
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. |
|
#21
|
|||
|
|||
|
Check your private messages.
|
|
#22
|
|||
|
|||
|
Isn't this:sending every manually entered URL to "index.php?"
|
|
#23
|
|||
|
|||
|
Oh yes, i think it is
|
|
#24
|
|||
|
|||
|
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 |
|
#25
|
||||
|
||||
|
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 |
![]() |
| Bookmarks |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
|
|
All times are GMT -5. The time now is 03:07 PM.










