WordPress.org

Ready to get started?Download WordPress

Forums

External redirect (4 posts)

  1. henri
    Member
    Posted 3 years ago #

    Hi all,

    I try to add a dynamic redirect rule [301] inside wordpress in order to do that :

    http://myblog.com/goto/http://externaldomain.com => http://externaldomain.com

    Do you have any advice? Inside the function.php or hardcode in the htaccess file?

    Thanks

  2. cubecolour
    ɹoʇɐɹǝpoɯ
    Posted 3 years ago #

    Mark jaquith's page links to plugin might help, but you won't be able to use the second http:// in the path

  3. henri
    Member
    Posted 3 years ago #

    Thanks I use this plugin for "static" redirect and it works fine, but in this case I don't know what would be http://externaldomain.com so I must write a dynamic redirect rule....

  4. 123milliseconds
    Member
    Posted 3 years ago #

    >>>Inside the function.php or hardcode in the htaccess file?

    htaccess better - NO php code executed; redirect gets done at server level.

    http://www.tamingthebeast.net/articles3/spiders-301-redirect.htm

    http://www.isitebuild.com/301-redirect.htm

    http://www.webconfs.com/how-to-redirect-a-webpage.php

Topic Closed

This topic has been closed to new replies.

About this Topic