Solved

Duplicate content even with 301 redirects

Posted on 2012-03-19
7
356 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 39

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
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.

 
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 39

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

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

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

This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
There’s a good reason for why it’s called a homepage – it closely resembles that of a physical house and the only real difference is that it’s online. Your website’s homepage is where people come to visit you. It’s the family room of your website wh…
The purpose of this video is to demonstrate how to Import and export files in WordPress. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Click on Too…
The purpose of this video is to demonstrate how to set up the permalinks on a WordPress Website. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Go t…

790 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