htaccess rewrite 301 code example Example: redirect htaccess 301 Redirect 301 /pagename.php http://www.domain.com/pagename.html