Tell me more ×
WordPress Answers is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I can't seem to figure out what's wrong here. I've updated links from a subdomain (test.domain.com)to a regular domain(domain.com) in my php files and through a search and replace script for the database. Everything is working as expected with the exception of one page. http://kidscounsel.org/publications/

What makes this more strange is that I receive a GoDaddy 404 as opposed to my custom 404. If I enter a random string in the URL, I receive my appropriate custom 404. My permalink is correct, and if I change the permalink to a different string; the page loads properly. I can't even 301 re-direct from that URL! The default URL http://kidscounsel.org/?p=906 works..

I've reset my permalink structure to default and back, and my .htaccess is set to 777. Here's the code:

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

I've looked at the wp_posts table through phpmyadmin and nothing looks out of the ordinary. I don't know what else to try. I'd appreciate any help!!

Thanks for your time!

share|improve this question
2  
The first line (ErrorDocument) and the RewriteRule work mutually exclusive. What happens if you remove the first line? And please never set anything to 777. Anybody can write anything into such a file. – toscho Nov 10 '12 at 6:13
Have you checked to see if there's a conflict between your page name 'publications' and any custom post types? – andy Nov 10 '12 at 8:25
I'd also check for publications CPT or taxonomy declaration – Mario Peshev Nov 10 '12 at 14:14
Wow, thanks for pointing me in the right direction! I stupidly forgot I had a file named publications.php. Removing that file fixed the 404 and all is well. You guys saved a day of pulling my hair out!! – Josh Fulton Nov 10 '12 at 15:55

closed as too localized by Rarst Nov 10 '12 at 22:10

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, see the FAQ.