counter stats
Wordpress Creating Two Version Of Blog Post Moz Error

Oh, Moz, You Silly SEO!

So, you're a WordPress whiz, huh? You've got your blog all set up, you're posting like a pro, but then, Moz - that sneaky SEO - starts throwing a tantrum about duplicate content. What's a blogger to do?

Let's Talk Twins, Baby!

Moz is all up in arms because it's found two versions of the same post. It's like it's found your blog's secret twin, and it's not happy about it. But don't worry, this isn't some weird Stranger Things situation. It's just a little WordPress quirk.

Meet the Twins: HTTP and HTTPS

So, who are these mysterious twins? They're just your humble blog post, dressed up in two different ways. One's wearing the HTTP coat - that's the one you've been dressing up with your fancy words and pictures. The other one's got the HTTPS tuxedo on - it's the same post, but with a little extra security.

Now, Moz, bless its little SEO heart, sees these two posts and thinks, "Hey, that's the same thing! That's cheating!" But really, it's just a case of mistaken identity. They're not the same post, they're just the same post with a different address.

Now, Let's Make Up!

So, how do we make Moz stop crying about your blog's twins? We tell it, "Hey, Moz, these aren't the same. They're just different versions of the same thing." And we do that by telling WordPress to redirect one of the twins.

How to Create a Blog on WordPress: 7 Basic Steps - 10WebHow to Create a Blog on WordPress: 7 Basic Steps - 10Web

Here's how you do it:

  • Log into your WordPress dashboard.
  • Click on "Settings" and then "General".
  • Scroll down to the "WordPress Address (URL)" and "Site Address (URL)" fields. Make sure they both start with https://.
  • Then, click on "Save Changes".
  • Now, go to your .htaccess file (you'll find it in your blog's root directory).
  • Add this line to the end of the file: RewriteEngine On
  • Then, add this line: RewriteCond %{HTTP_X_FORWARDED_PROTO} !https
  • Finally, add this line: RewriteRule ^(.)$ https://%{HTTP_HOST}%{REQUEST_URI}

And there you have it! Moz should now see your blog's twins as one and the same. No more tantrums, no more tears. Just a happy, secure blog.

But Wait, There's More!

Now, you might be thinking, "Hey, I've got another problem here. My blog's got a www and a non-www version too!" Well, you're right. But don't worry, we can fix that too.

Getting started with WordPress: Creating a blog and writing postsGetting started with WordPress: Creating a blog and writing posts

Just go back to your .htaccess file and add this line: RewriteCond %{HTTP_HOST} ^www\.(.)$ RewriteRule ^(.*)$ https://%1/$1 [R=301,L]

And there you have it! Your blog's twins are now happily married, and Moz is none the wiser. It's all happy families, and your SEO is safe from those sneaky duplicate content accusations.

So, that's the story of your blog's twins. It's not as scary as it sounds, is it? Now, go forth and blog, my friend. Your WordPress knowledge has grown, and Moz is none the wiser.