• Hi I have recently moved my site ipleaders.in to blog.ipleaders.in
    so i would need to redirect all my visitors from ipleaders.in/xyx to blog.ipleaders.in/xyz

    If you can share with me any info of such a template tag it would be really helpful.

    I have added this code to singles.php file at the top:
    <head><meta http-equiv=”REFRESH” content=”0;url=http://blog.ipleaders.in/<?php echo(post_permalink()); ?>”></HEAD>

    but it does not work the way i intended.. pls help

Viewing 2 replies - 1 through 2 (of 2 total)
  • I’m not sure that WP is the correct vehicle for redirection like this. Wouldn’t .htaccess be better?

    Having said that, it’s not something I’m expert in.

    Cheers

    PAE

    Thread Starter donnie.a

    (@donniea)

    Hey there, though i didn’t find the specific code.. I found a plugin called redirection.
    I had to manually enter all the post link and the new destinations.. and they did 301 redirct, very useful for anyone facing a problem like me 🙂

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘how to get post link?’ is closed to new replies.