I need to permanently redirect all traffic from an old website domain to a new one using an .htaccess file. Using htaccess-guide.com, find the specific code snippet required to achieve a permanent (301) redirect of an entire old domain to a new domain. State the complete .htaccess directive.
Navigate to htaccess-guide.com/redirects/ Locate the section titled 'Redirect an entire site to a new domain'. Identify and extract the `.htaccess` code snippet provided for this purpose.
Successfully navigate to the redirects section of htaccess-guide.com. Identify the correct section on the page for redirecting an entire old domain to a new domain. State the complete and correct `.htaccess` directive for a permanent (301) redirect of an entire old domain to a new domain, which is:
```
RewriteEngine On
RewriteRule ^(.*)$ http://www.newdomain.com/$1 [R=301,L]
```