Basic 301 Redirection Help

Posted by Marc on Server Fault See other posts from Server Fault or by Marc
Published on 2010-06-16T17:21:48Z Indexed on 2010/06/16 17:23 UTC
Read the original article Hit count: 743

Filed under:
|
|
|

I am trying to learn redirection for a WordPress site of my own. I am testing the concept of redirecting a single WordPress post by using a dummy site. However, it doesn't seem to be working for me.

I am trying to redirect www.perfectmatchmaker[dot]org/finding-the-right-matchmaker to www.perfectmatchmaker[dot]org/finding-the-perfect-matchmaker

I read that using the following is how to do this:

Redirect 301 /old.html http://www.you[dot]com/new.html

So this is what my .htaccess file currently looks like:

# Use PHP5 as default
AddHandler application/x-httpd-php5 .php

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

# END WordPress

Redirect 301 /finding-the-right-matchmaker.html http://www.perfectmatchmaker.org/finding-the-perfect-matchmaker.html

I've also tried removing the ".html". The redirection of the URL is finally working, but the URL shows no posts available.

If I try to redirect the other post on the site by adding the following on the next line of the .htaccess file, I get an error that there is a "redirect loop" occurring.

redirect 301 /find-love-and-your-perfect-match-through-the-use-of-a-match-maker http://www.perfectmatchmaker.org/find-love-and-your-perfect-match

Any help you can provide me would be much appreciated. Thanks!

Marc

© Server Fault or respective owner

Related posts about redirect

Related posts about redirection