Viewing 4 replies - 1 through 4 (of 4 total)
  • You can use the meta tag (inside head section) into a blank page, or change the .htaccess in your old host -if you’re using Apache Web server

    Example of both:
    Meta tag:
    <meta http-equiv=”Refresh” content=”*time*;url=*your URL*/”>

    .htaccess: (if you’re using Apache as Web Server)
    RewriteCond %{HTTP_HOST} ^www.*your domain*.com$ [NC]
    RewriteRule ^(.*)$ https://www.*your new domain*.com/$1 [R=301,L]

    Example taken from mod rewrite cheat sheet

    Here’s a short and sweet script that I’ve used in the past:
    <?php
    header('HTTP/1.1 301 Moved Permanently');
    header('Location: https://www.newdomain.com');
    exit;
    ?>

    Just save it as index.php to replace your old index file.

    Meta refresh doesn’t work with all browsers and is a method to avoid if at all possible.

    As for .htaccess, rewrite keeps the old URL in the address bar I believe. Try:

    Redirect /oldblog/ https://www.newblog.com/

    You can also use PHP to do it:

    <?php
    header('HTTP/1.1 301 Moved Permanently');
    header('Location: https://www.newblog.com/
    );
    ?>`

    Thread Starter UsmanLaw

    (@usmanlaw)

    Thanks guy I know have BlogIntroduction.com forwarding to BlogIntro.com

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Setting a redirection from old Blog to new Blog’ is closed to new replies.