If your using a HTML file then it wouldn't be a 301 redirect. A 301 redirect is when the web server tells whoever is trying to visit a website that its been moved permanently and the only thing that is sent are headers. If you use a HTML file then it would be a regular 200 code that is sent and the HTML code that has the user redirected. One way of having a 301 redirect is with a PHP script with this code:
PHP Code:
header('HTTP/1.1 301 Moved Permanently');
header('Location: http://www.websitetoredirectto.com/');
exit();
// Or you could just do this
header('Location: http://www.websitetoredirectto.com/', true, 301);
exit();
Or, you could use a .htaccess file like so:
Code:
RewriteEngine on
RewriteRule ^(.*)$ http://www.websitetoredirectto.com/ [R=301,L]
Bookmarks