A 301 (moved permanently) redirect is an instruction to the user that the file that is being requested has moved to a different location. The result is that the browser requests the file located at the new location.
If you currently have a site at example.ca
but wish to use example.org
instead (without moving any files) then you will first need to setup example.org
as a parked domain on your hosting account (providing your webhost supports this). Your site would then be accessible by both domains.
To solve the duplicate content issue and set example.org
as the primary domain for your users then set up a 301 redirect from example.ca
to example.org
in .htaccess:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^example\.ca [NC]
RewriteRule (.*) http://example.org/$1 [R=301,L]
If the requested HTTP_HOST is "example.ca" then 301 redirect the request to "example.org".