So I moved a site over to wordpress and have a problem with the permalinks. The custom permalink is set to
/%category%/%postname%/
Most of the pages / posts work fine, however I have two categories that don't work. The pages are there but when you click on the urls I have a 404 error
A few things to note
- I don't get a 404 error on the page/post when using the standard permalink structure
- The 404 error doesn't display my normal 404 page, but instead serves the hosts 404 page
- A correct 404 displays my custom 404 page
- I've double checked my htaccess file and all is correct (prior to the host editing it lastnight)
So I emailed the host lastnight and told them this has to be on their end as a proper 404 shows my landing page, and these show the server 404 page. Their reply was this
This morning I check the server headers of the pages that appear to be fixed and I get a 404 error on all of them. I can access the pages, but it's not the proper status code.Upon review of your account, the issue appears to be due to an issue with your 404 error configuration. As a courtesy, we have added the correct scripting to your .htaccess file to resolve the issue. Because WordPress does not store these pages in the root directory of your hosting account, your 404 behavior must be configured so that inquiries to pages that do not exist in the root or in folders in the root are redirect through your index.php file after which WordPress will redirect them to the correct page and pages that really do not exist receive the 404 error message from your template. You can review the information below for additional information on the script that was added to your .htaccess file to resolve the issue.
Does anyone have any idea how to fix this so that I receive a proper status code of 200 instead of 404?
Here is the htaccess they created
# 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
ErrorDocument 404 /index.php
- Thank you













LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks