Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

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

[SOLVED] how to override Atahualpa default 404's?

Old Jun 7, 2009, 03:29 PM
2 posts · Jun 2009
Atahualpa has "overidden" my sites custom 404 error page as specified in .htaccess. I discovered it has to do with the WP Permalink coding in .htaccess since if I remove this code, my custom 404 works as it should.

I have a large site of which WP is only a part, albeit an important part (it's installed in a /blog subdirectory). However, I'd rather have my custom 404 page with all my standard navigational templates used sitewide than the "404" (technically I don't think it's really a 404 page, though I certainly be wrong about that) generated by the blog theme which, of course, uses the Atahualpa templates.

How can I wrestle control of my 404 page back from WP/Atahaulpa?
Old Jun 10, 2009, 08:18 AM
Flynn's Avatar
3,768 posts · Oct 2008
Munich, Germany
This is not Atahualpa specific. The default Wordpress .htaccess file redirects every non-existing file or directory request inside the Wordpress directory to Wordpress. This should not take over the non-WP parts of your site, unless you have the .htaccess file at domain.com/.htaccess and the Wordpress installation at domain.com/blog-directory. In that case you may have to add

RewriteBase /blog-directory

to the .htaccess file, or move it to the Wordpress directory


You can also make a copy of Atahualpa's index.php as 404.php and edit that file
Old Jun 10, 2009, 04:40 PM
2 posts · Jun 2009
Thanks Flynn. You got me going on the right track.

For those of you keeping score at home...

My mistake was placing the WP Permalink code in my root directory .htaccess. With my particular configuration that Permalink code needed to be in a separate .htaccess located in the mydomain.com/blog directory (i.e. the root directory for my blog...as you pointed out). I hadn't realized you could have multiple .htaccess files on a single site...they just have to reside in different directories.

I never tried RewriteBase though I'm sure that would work too.

In any event, I now have the best of both worlds. My static site displays custom error pages based on my static site templates and my blog displays 404 errors based on Atahualpa templates.
Old Jul 26, 2009, 04:14 AM
4 posts · Jul 2009
I have a question in the same regard: What's the best way to edit what's shown for 404? Basically, if instead of putting up a 404 at all, could I just redirect someone to a default page?

I'm not sure if that would be the work of my theme, or a plugin. Thanks!
Old Aug 14, 2009, 07:05 AM
72 posts · Mar 2009
I had the same idea as Neceros, I created a page that I want to have displayed each time when a 404 error occurs. So, how do I do a redirect to display that page now instead of the "normal" 404 error page. SY
Hospitalera's Blog
Old Aug 14, 2009, 08:35 AM
72 posts · Mar 2009
OK, I found out that I have to add

ErrorDocument 404 http://hospitalera.com/welcome/

to my .htaccess file, but whichever location I try out inside the file, it doesn't work, and yes I cleared my cache between attempts. Where is my mistake? SY
Hospitalera's Blog
Old Aug 14, 2009, 09:40 AM
72 posts · Mar 2009
OK, I found my own answer. Basically you have to create a 404.php file, add the content you want to show and upload it to your Atahualpa theme folder. Just done it and it works fine in FF and IE. Now I am a tiny bit exhausted because I have never touched php before ;-) If there is interest I can post a link to my, planned, blog post "How to make your own Atahualpa custom error page" when it is written, see ya, SY
Hospitalera's Blog
Old Aug 15, 2009, 06:36 AM
72 posts · Mar 2009
OK, here we go, my personal take at how to create a custom error 404 Wordpress page, SY
Hospitalera's Blog
Old May 28, 2010, 06:15 AM
1 posts · May 2010
Thanks for the code on showing recent posts - added it to my own 404

Old Dec 7, 2012, 01:05 PM
67 posts · Nov 2010

Sorry to dig up this thread, but I'm trying to build a custom 404 page as well. When I used the example 404.php code on my ATA 3.7.9 site, it bombs. I've created many .php files so there's not an issue there (in terms of file being a true text file, proper file permissions, etc..). The example code crashes on line 9.

I like the look of your 404 page, what did you do to achieve that?

TIA for any assistance.
Old Dec 7, 2012, 03:32 PM
lmilesw's Avatar
10,176 posts · Jul 2009
Central New York State USA
You can copy the 404.php from the TwentyEleven theme folder and put it in the Atahualpa theme folder. Edit as you wish.
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.
Old Dec 10, 2012, 06:37 PM
67 posts · Nov 2010
Originally Posted by lmilesw
You can copy the 404.php from the TwentyEleven theme folder and put it in the Atahualpa theme folder. Edit as you wish.

That worked perfectly. Also I found out that a search that returned nothing wasn't going to my custom 404.php page but simply by duplicating the 404.php to a file named search.php, it all works well. Not sure this is the best solution, but it's easy and it works so I'll stick with it until I see it's causing me trouble.

Thanks for the assist.


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] How to Override Table CSS? jkestler Atahualpa 3 Wordpress theme 18 Apr 13, 2015 02:34 PM
How to change the default Avatar whatsmytruth Comments, trackbacks & pings 5 May 14, 2009 07:39 PM
My site keeps reverting to the "Default" template from Atahualpa! Leonardo T Dragon Atahualpa 3 Wordpress theme 3 May 8, 2009 01:40 PM
404 error seneque Atahualpa 3 Wordpress theme 1 Apr 11, 2009 10:20 PM
How to override CSS in widget "Text" ?? joe hark Sidebars & Widgets 2 Mar 1, 2009 10:43 PM

All times are GMT -6. The time now is 12:59 PM.

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