Ask your WordPress questions! Pay money and get answers fast! Comodo Trusted Site Seal
Official PayPal Seal

redirect taxonomy page to buddypress page WordPress

Hi

I would like the taxonomy custom page to redirect when viewed to another part of the website - a buddypress page that has the same name as the taxonomy

http://graduatejob.com/sectors/audit/

permanently redirect to

http://graduatejob.com/sector/audit/

Answers (5)

2012-06-06

AdamGold answers:

The following plugin will be useful for you:
http://wordpress.org/extend/plugins/quick-pagepost-redirect-plugin/

2012-06-06

Jatin Soni answers:

try with .htaccess. Place below code in your root .htaccess file

Redirect 301 http://graduatejob.com/sectors/audit/ http://graduatejob.com/sector/audit/

or with php you can place below code at the top of the header.php (at first line)

<?php
global $page, $paged;
if(is_page(your page id of the old url)){
Header("HTTP/1.1 301 Moved Permanently");
Header("Location: http://graduatejob.com/sector/audit/");
}
?>


if it is single (post) than use below

<?php
global $page, $paged;
if(is_single(your post id of the old url)){
Header("HTTP/1.1 301 Moved Permanently");
Header("Location: http://graduatejob.com/sector/audit/");
}
?>


I am not sure about php code and never tested

2012-06-06

John Cotton answers:

Try not to use a plugin...they just add weight to your website when you web server can do this for you with a little edit of the text file .htaccess.....


Depending on what's installed on your server, something like this will work:

Redirect 301 /sectors/audit http://graduatejob.com/sector/audit/

That's the mod_alias version, but you might only have mod_rewrite.

You can read more here:
http://httpd.apache.org/docs/2.0/mod/mod_alias.html
and here
http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html

2012-06-06

Francisco Javier Carazo Gil answers:

Try .htaccess using wildcards to redirect any request, something like this:

RewriteEngine on
Redirect 301 /sectors/* http://graduatejob.com/sector/$1

It's faster. You have one rule for everyone.

2012-06-07

Nile Flores answers:

Why not just install the plugin Redirections and put a permanent 301 on the page. You can control both posts and pages and redirect as many as you want. -http://wordpress.org/extend/plugins/redirection/

It SHOULD work on BuddyPress as well.