I need to set up a 301 redirect for an old domain to a new domain using .htaccess. Can you find the section on 'Redirects' or '301 Redirects' and extract a basic example of how to redirect an entire old domain to a new one?
Navigate to 'https://htaccess-guide.com'. Scroll down the page to reveal all content. Identify and click on the link or section related to 'Redirects' or '301 Redirects'. If a direct link is not available, look for a table of contents or menu that lists common .htaccess topics and select the most relevant one. Once on the 'Redirects' page, locate and extract an example of how to redirect an entire old domain to a new domain using a 301 redirect.
The agent successfully navigates to a page detailing .htaccess redirects. The agent identifies and provides a code snippet or explanation for performing a 301 redirect of an entire old domain to a new domain (e.g., using `RedirectMatch 301 ^(.*)$ http://www.newdomain.com/$1` or similar `RewriteRule` syntax).