Hi,
I have the .com .net and .org domains for my website. To avoid canonization issues (I think that’s the term) I would like to redirect my .net and .org to my .com.
I have got to this work briefly, with something like this:
Options +FollowSymlinks
RewriteEngine on
rewritecond %{http_host} ^domain.com [nc]
rewriterule ^(.*)$ http://www.domain.com/$1 [r=301,nc]
But it won’t work when I include it into my existing .htaccess of:
RewriteEngine on
RewriteRule ^forum/([0-9]+)/([0-9]+)/(.*?).html$ /forum.php?page=thread&pid=$1&p=$2
RewriteRule ^docs/([a-zA-Z0-9_-]+)/(.*?).html$ /docs.php?page=$1
RewriteRule ^docs/([a-zA-Z0-9_-]+)/$ /docs.php?page=$1
How do I incorporate the two? One problem was that any directory (eg. /directory) would just redirect to the index page.