Forums

Redirecting blog elsewhere (3 posts)

  1. pm4girls
    Member
    Posted 2 years ago #

    Hi
    I've made a pretty fundamental error today: in backing up and moving my Wordpress installation elsewhere I have corrupted my original blog. I had hoped to have the two running in parallel during a handover period. However, now what I want to do is put up a simple message with the new URL in. When users connect to http://eharrin.free.fr/wordpress, what is the file they (are supposed to) see? I imagine that is the one I will need to change, just adding a line to say that it has moved. I have tried to do this with index.php but it made no difference.
    Any help would be gratefully received.
    Thanks

  2. blepoxp
    Member
    Posted 2 years ago #

    You could make a 301 redirect in your .htaccess if you have access to it.

    This will help you do that.

  3. pravin
    Member
    Posted 2 years ago #

    Or you can edit your index.php file and add

    <?php header("Location: http://newurl.com"); exit; ?>

    at the beginning

Topic Closed

This topic has been closed to new replies.

About this Topic