# Rewrite domain.org-> domain.com
RewriteCond %{HTTP_HOST} .
RewriteCond %{HTTP_HOST} !^www\.domain\.com [NC]
RewriteRule (.*) http://www.domain.com/$1 [R=301,L]
RewriteCond %{HTTP_HOST} .
RewriteCond %{HTTP_HOST} !^theonedomainyouwant\.com [NC]
RewriteRule (.*) http://theonedomainyouwant.com/$1 [R=301,L]
This plugin uses 301 redirects to forward users and search engines alike to a single URL based on plugin and FURL configuration. In addition to redirecting, the plugin can also (optionally) rewrite document links/URIs.I understand the method but not the principal. It seems that there are quite a few scenarios where you could access a doc in at least two methods: ../dir/ is the same as ../dir/index.html or ../dir/default.html (depending on your server).
Exactly. The plugin redirects all URLs that point to identical pages to the one preferred URL. The idea is that you want to make sure that search engine indexes to all pages in your site are concentrated in unique URLs. That way they don’t store some of your ranking credit at www.mydomain.com/index.html and some at www.mydomain.com/ and yet more at www.mydomain.com/index.php?id=1. They’re the same page, and the plugin makes sure that you never show more than one URL for it. It also 301 redirects requests for non-preferred URLs to the preferred ones.
I understand the method but not the principal. It seems that there are quite a few scenarios where you could access a doc in at least two methods: ../dir/ is the same as ../dir/index.html or ../dir/default.html (depending on your server).
That way you don’t get half of your ranking credit at www.mydomain.com/index.html and the other half at www.mydomain.com/.OK, that makes sense. I have seen this ill effect when monitoring page rankings and seeing one result for www.domain.tld and another for domain.tld. Thanks for clearing this up
@davidm: Take another look at those rules. They redirect any domain that is not (!) the one you want to the one you want. They will work with or without the SEO Strict URLs plugin.
