Forum Moderators: phranque
You're right this one is fairly easy...
RewriteEngine ON
RewriteRule ^(.*)$ http://www.yoursite.com/$1 [R=301,L]
So you have an idea of what it does here goes:
^ starts the line
(.*) catches any string and stores it in a variable.
$ ends the line
The canonical URL causes an external redirect.
R=301 redefines the redirect from the default (302/temproary) to a 301/permanent.
L says stop processing now.
Hope this helps.
Justin