Wordpress Themes - WP Forum at BFA
Click Here To DONATE! Support the theme development, get more attention and additional benefits based on your donation level. Your forum name will be highlighted.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme »

About the 404.php page


Build custom WP THEMES, without
coding.
Click here for THEMEFRAME

From the author of Atahualpa, the #1 most
downloaded (700,000+) theme @ wordpress.org
  #1  
Old Dec 31, 2010, 06:04 AM
Farinet
 
24 posts · Dec 2010
Genève, Switzerland
Hello,

At the moment wrong URLs get me a
Not Found

The requested URL /sd was not found on this server.
page. I am not sure who is generating this page, but I would guess it is Apache.
I have read that, in order to have a custom Not Found page, one needs to create, in the Atahualpa theme directory, a 404.php page with

<?php get_header(); ?>
<div id="content" class="narrowcolumn">
<h2 class="center">ARBITRARY TEXT</h2>
<p>MORE ARBITRARY TEXT</p>
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>


I did, however I still get the page above.

Note that I don't have an .htaccess file. Should I create one manually and edit it? I assumed WP would take care of this.
  #2  
Old Dec 31, 2010, 07:19 AM
juggledad's Avatar
juggledad
 
22,379 posts · Mar 2009
OSX 10.8.5 WP 3.8.x Atahualpa 3.7.x Safari 6.x Firefox 25 XP
make a copy of index.php and rename it to 404.php and edit it
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Dec 31, 2010, 09:04 AM
Farinet
 
24 posts · Dec 2010
Genève, Switzerland
Thanks for your input, however this doesn't solve my problem. I made a copy of index.php and renamed it to 404.php. However I am still in the situation described above and still get the (presumably) Apache-generated message. Of course I can create a .htaccess, and point 404 errors to a particular page created for this. Please clarify if I am supposed to do this, or if it should work by just adding the 404.php file. If one has to create the .htaccess file, then the "not found" page is set there, and can have any name. So, from the fact that it should be named 404.php, I assumed WordPress should somehow take care of this by itself. Apparently I am missing something.
  #4  
Old Dec 31, 2010, 02:49 PM
juggledad's Avatar
juggledad
 
22,379 posts · Mar 2009
OSX 10.8.5 WP 3.8.x Atahualpa 3.7.x Safari 6.x Firefox 25 XP
You might want to look at the No 404 Errors plugin. I will let you redirect to a page of your choice
see also http://codex.wordpress.org/Creating_an_Error_404_Page
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #5  
Old Jan 1, 2011, 10:56 AM
Farinet
 
24 posts · Dec 2010
Genève, Switzerland
I tried the plugin, but my situation is still the same.

Regarding the Codex page, it says:

Quote:
The default WordPress theme has a 404.php file, but not all Themes have their own custom 404 error template file. If they do, it will be named 404.php. WordPress will automatically use that page if a Page Not Found error occurs.
However this not the case. I have created such a file in the theme root directory, and it is not used at all.

The rest of the page is irrelevant, as it explains what the content of 404.php should be.

Just wondering: what about the .htaccess file? Should there be one? Could it be the case that WP usually maintains its own .htaccess file for such things, but in my case it couldn't create it?
  #6  
Old Feb 26, 2011, 02:21 PM
vCopia's Avatar
vCopia
 
72 posts · Jan 2011
Long Island, NY
Quote:
Originally Posted by juggledad
You might want to look at the No 404 Errors plugin. I will let you redirect to a page of your choice
see also http://codex.wordpress.org/Creating_an_Error_404_Page

Just wanted to say a hearty Thanks, The No 404 Errors plugin was just what I was looking for.

Last edited by vCopia; Feb 26, 2011 at 02:23 PM.

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Custom 404 page paulae Atahualpa 3 Wordpress theme 15 Jul 5, 2011 05:42 AM
[SOLVED] a parse error rather than the 404 page displayed when page not found lhanft Atahualpa 3 Wordpress theme 4 Oct 22, 2009 09:04 PM
Custom 404 Page and IE 8 abroadinspain Atahualpa 3 Wordpress theme 4 Sep 29, 2009 10:20 AM
What is the URL of the 404 page ? 3ukman Header configuration & styling 1 Sep 5, 2009 07:41 PM


All times are GMT -6. The time now is 07:35 AM.


Powered by vBulletin® Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.