I can't quite find the correct instructions ... I don't want to go and replace every single html page in a site with a 301 redirect. I just want too put one .htaccess file in the base folder and forward all of that traffic to one page. How do I do that?
Add this line to your .htaccess file in the root of your web directory. Redirect 301 / http://example.com/
RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} ^www.yourdomain.com$ [NC] RewriteCond %{HTTP_HOST} ^yourdomain.com$ [NC] RewriteRule ^(.*) http://www.yourdomain.com/yourpage.html [L,R=301] Code (markup):
Endurint had one way or if your using cPanel do a redirect / to the page url or folder. Domains > Redirect > Add Redirect 301: (Domain name) / [keep the next box blank] redirects to→ to the page url you wish to redirect.
Just be aware that using a one-line redirect for your whole site will lose you all the page ranking previously accrued. Instead, you should specify each page and its new destination in your .htaccess file.