Solved

Duplicate content even with 301 redirects

Posted on 2012-03-19
7
345 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
Comment Utility
Post your code please.


Cd&
0
 
LVL 1

Author Comment

by:underrugswept
Comment Utility
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
Comment Utility
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
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 1

Author Comment

by:underrugswept
Comment Utility
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
Comment Utility
I feel dirty getting points for that ;)
0
 
LVL 1

Author Comment

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

Expert Comment

by:COBOLdinosaur
Comment Utility
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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Accessibility and Usability are two concepts that seem to be closely related.  But, too many people seem to have a distorted perception of them. During last five years, those two words have come to the day-to-day work of almost every web develope…
In Solr 4.0 it is possible to atomically (or partially) update individual fields in a document. This article will show the operations possible for atomic updating as well as setting up your Solr instance to be able to perform the actions. One major …
The purpose of this video is to demonstrate how to exclude a particular blog category from the main blog page. This is can be used when a category already has its own tab, or you simply want certain types of posts not to show up on the main blog. …
The purpose of this video is to demonstrate how to Test the speed of a WordPress Website. Site Speed is an important metric of a site’s health. Slow site speed can result in viewers leaving your site quickly and not seeing your content. This…

772 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

14 Experts available now in Live!

Get 1:1 Help Now