| | #1 |
| Warrior Member Join Date: 2011
Posts: 21
Thanks: 2
Thanked 0 Times in 0 Posts
|
Hi Experts, I want to redirect my whole post which are in single category to One Single URL. Eg: 100 Post under Category "a" i want to redirect all of them to one url. just Like this i have 5 - 8 categories. Please suggest me the Best plugin or Hack for this . Thanks in Advance Regards, Ellero |
| |
| | #2 |
| HyperActive Warrior Join Date: 2011 Location: Edmonton, Alberta
Posts: 120
Thanks: 0
Thanked 25 Times in 23 Posts
|
Put this code on the top of your post.php page (or whatever page is handling your single posts). <?php if (is_category( 'your-category-slug-or-id-here' )) { header("Location: http://the-url-you-want-to-redirect-to.com"); } ?> |
| |
| | #3 |
| Warrior Member Join Date: 2011
Posts: 21
Thanks: 2
Thanked 0 Times in 0 Posts
|
Thanks But i want to Redirect all post which are under single category to single URL
|
| |
| | #4 |
| Warrior Member Join Date: 2011
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
|
I need the id of this category and put it in the code which unnatural gave you |
| | |
| |
| | #5 |
| HyperActive Warrior Join Date: 2011 Location: Edmonton, Alberta
Posts: 120
Thanks: 0
Thanked 25 Times in 23 Posts
| |
| |
| | #6 | |
| Watching you... War Room Member Join Date: 2008 Location: Waterdown, Ontario, Canada
Posts: 8,208
Thanks: 2,059
Thanked 3,699 Times in 2,243 Posts
Blog Entries: 2 |
You mean nobody will be able to read any of the 100 posts - because all of them will be redirected to some other URL. Then why the heck to have 100 posts? | |
| | ||
| |
| | #7 |
| Software/Database Expert War Room Member Join Date: 2011 Location: Austin, TX
Posts: 75
Thanks: 47
Thanked 24 Times in 21 Posts
|
Well, it depends if some of those posts have serious link juice coming in or are getting some real traffic on their own. People will click away if they don't get what they're looking for.. but.. I have heard of strategies to kickstart google into indexing a new website by redirecting other pages to it (passing on the juice/PR) and then putting everything back to normal. It's not always good to kill the URLs, IMHO. gtownfunk |
| |
|
| Bookmarks |
| Tags |
| category, post, redirect, url |
| |