WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This stuff is driving me nuts. The following url does NOT exist and should return a 404: http://www.easyjob.net/resume/

However, if I try to access it, I get a 301 to http://www.easyjob.net/r/cover-letter/resume-and-cover-letter/

Even if I add a redirect to the .htaccess to redirect it somewhere else, I still get the * 301 to http://www.easyjob.net/r/cover-letter/resume-and-cover-letter/ again.

Anybody knows what's going on?

PS this is the .htaccess:

AddHandler php5-script .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]

# END WordPress

Redirect        http://www.easyjob.net/resume/ http://www.easyjob.net/r/ [R=301,NC,L]
share|improve this question
up vote 1 down vote accepted

If you remove your Redirect from the .htaccess file, you could try adding a custom 404.php template file to your theme. I'm not sure exactly what you are asking. Do you want the page to Redirect, or do you want a custom 404 page that displays similar items?

To achieve the show similar posts using the 404.php template try this:

Create a php file named 404.php Add this to the file and save it, then upload it to your theme directory:

<?php get_header(); ?>
        <div class="container">
<div class="content">
<h2 class="entry-title">Didn't Find What You were Looking For?</h2>
<p>Perhaps one of the links below, can help.</p>
$rel_tags = get_the_tags();
foreach($rel_tags as $rel_tag)
    $rel_tagnames .= $rel_tag->name . ',';
$rel_posts = get_posts('tag=' . $rel_tagnames . '&post__not_in' . $post->ID . '&showposts=5');
if (count($rel_posts)) : ?>
    <?php foreach((array) $rel_posts as $rel_post) { ?>
        <li><a href="<?php echo $rel_post->post_name ?>"><?php echo $rel_post->post_title ?></a></li>  
    <?php } ?>
<style type="text/css">
#return-home {
<div id="return-home">
<a href="<?php bloginfo('url'); ?>" title=" <?php bloginfo('name'); ?>">Click to Go to the Home Page:&nbsp;<?php bloginfo('name'); ?></a>
<?php else : ?>

<?php endif; ?>
<?php get_sidebar(); ?>
<?php get_footer(); ?>

NOTE: You will need to replace the div's I've used with the ones your theme has or it won't look like the rest of your website. Open your index.php file and replace the <div class="container"> and <div class="content">from my file with your theme's div's.

share|improve this answer
I had noticed that Wordpress itself was making redirects for certain urls (that didn't exist and should therefore cause a 404). Apparently it's a new feature: mydigitallife.info/… I had no idea who was creating those redirects, that's what puzzled me. – Fernando Aug 3 '11 at 14:31



will create more problems than solve because that will enable other sorts of urls. http://www.easyjob.net/ and http://www.easyjob.net/index.php will be accessible and that is very bad for SEO since you have to pages showing the same content. I am looking for a solution to stop Wordpress from redirecting misspelled URLs and will update you I find one

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.