Forums

[resolved] best way to redirect a post toward a page (5 posts)

  1. 1024
    Member
    Posted 2 years ago #

    hello people, :)

    I need to redirect some posts toward pages (because I have a specific category which show some posts in the header with the smoothgallery (mootools stuff)) but my WP website is as a CMS and I dont have (need) categories (exept one with news but whatever) so I need to redirect these articles towards my pages... and I don't know the best way to do that..

    with php :

    [code]
    <?php

    header(location:http://URL.com);

    ?>[/code] does it worth to install a plugin such as php excec just for that?

    the meta code:

    [code]<meta http-equiv="REFRESH" content="{TAR}; URL={AR}">[/code]

    or something else?

    Like you can imagine, I would need a really fast code cause the article doesn't have to be shown, it would sound so bad lol

    Thanks for your advices WP community :)

    have a great day.

    1024, Paris, France.

  2. 1024
    Member
    Posted 2 years ago #

    lol so fast!! you're so nice, I install it and I let you know if it's what I need

    thank you so muchhhhh

  3. 1024
    Member
    Posted 2 years ago #

    it works perfectly, 1,000 thanks for Ipstenu and the person who created this awesome plugin

  4. prophecy2040
    Member
    Posted 2 years ago #

    You are welcome 1024! And thanks Ipstenu for responding.
    On a redirection note - the latest version now allows you to redirect any link you want to a new location, without the need to create a page or post as previous versions required. This is great for sites that are converted to WordPress from a static HTML site or other language site - or just to create a shorter Ad/Email friendly link to redirect the user to.

    Thanks again - and have a Happy New Year!
    Don Fischer

Topic Closed

This topic has been closed to new replies.

About this Topic