Solved

Duplicate content even with 301 redirects

Posted on 2012-03-19
7
349 Views
Last Modified: 2012-03-19
My site is http://www.stadriemblems.com and I have a 301 redirect in my .htaccess file to redirect all non-www to www and it works great. But it doesn't seem to apply to my blog, which is located at http://www.stadriemblems.com/blog

It doesn't seem to make sense that I'd need to place code in every .htaccess file of every sub-folder. If I do, what code can I use?
0
Comment
Question by:underrugswept
  • 3
  • 2
  • 2
7 Comments
 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 37737742
Post your code please.


Cd&
0
 
LVL 1

Author Comment

by:underrugswept
ID: 37737765
This is the code I have that redirects http://stadriemblems.com to http://www.stadriemblems.com

RewriteCond %{HTTP_HOST} !^www\.stadriemblems\.com$
RewriteRule (.*) http://www.stadriemblems.com/$1 [R=301,L]

Open in new window


What I am looking to do is to also redirect http://stadriemblems.com/blog/ to http://www.stadriemblems.com/blog/
0
 
LVL 38

Accepted Solution

by:
Aaron Tomosky earned 500 total points
ID: 37737778
It currently works for me...


I type
http://stadriemblems.com/blog/ 
And i get redirected to
http://www.stadriemblems.com/blog/

So what's the problem?
0
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

 
LVL 1

Author Comment

by:underrugswept
ID: 37737842
Hmm, I guess the error is just in SEOmoz's crawler. It's giving me a bunch of duplicate content errors. It understands my redirects in the main directory but not the blog. Sorry to have wasted your time.
0
 
LVL 38

Expert Comment

by:Aaron Tomosky
ID: 37737871
I feel dirty getting points for that ;)
0
 
LVL 1

Author Comment

by:underrugswept
ID: 37737927
Well, you still tried. It was my fault for posting a stupid question!
0
 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 37738047
There are no stupid question; just problems to be solved.  Aaron it is guaranteed that if you participate in enough questions you will get shafted sometimes, so it just evens out. :^)


Cd&
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In order to have all security and back ups taken care of, WordPress users can sign up for services with WP Engine.
"In order to have an organized way for empathy mapping, we rely on a psychological model and trying to model it in a simple way, so we will split the board to three section for each persona and a scenario and try to see what those personas would Do,…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
The is a quite short video tutorial. In this video, I'm going to show you how to create self-host WordPress blog with free hosting service.

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now