Skip to content

Tag Archives: 301

htaccess 301 redirect from all pages to one page

04-Apr-11

RedirectMatch permanent /.* http://www.newdomain.com/

301 Redirect [PHP]

03-Feb-10

<?php header("HTTP/1.1 301 Moved Permanently"); header("Location: http://www.example.com/new-url/"); Done. PHP 301 redirect is now rolling in given directory once you put that, say, in a file named index.php.