I'd like to direct traffic from my wordpress blog to my C5 blog, any ideas?

Permalink Browser Info Environment
I used the suggested code in my header on WP:
<?php

if (empty ($_GET['json'])) {

$path = str_replace ("http://bjornbauerart.com/wordpress", "http://www.bjornbauerart.com/blog", $_SERVER['REQUEST_URI']);

Header("HTTP/1.1 301 Moved Permanently");
Header("Location: " . $path);

}

?>

For whatever reason when I go to my WP url (bjornbauerart.com/wordpress) it gets stuck in a redirect loop and will not direct me to my C5 blog (bjornbauerart.com/blog). Are there any other effective (and relatively easy) ways to make this work smoothly? Thanks!

Type: Discussion
Status: New
bjornb
View Replies:
myactivechild replied on at Permalink Reply
myactivechild
Having the same problem, when I installed the CSS as instructed I got this:

This webpage has a redirect loop
The webpage athttp://www.myactivechild.com/manage/wordpress/... has resulted in too many redirects. Clearing your cookies for this site or allowing third-party cookies may fix the problem. If not, it is possibly a server configuration issue and not a problem with your computer.
Here are some suggestions:
Reload this webpage later.
Learn more about this problem.
Error 310 (net::ERR_TOO_MANY_REDIRECTS): There were too many redirects.
elyon replied on at Permalink Reply
elyon
$_SERVER['REQUEST_URI'] has the stuff that occurs *after* your domain name.

Try using "/wordpress" and "/blog" instead of "http://bjornbauerart.com/wordpress" and "http://bjornbauerart.com/blog" and it should probably work :)
myactivechild replied on at Permalink Reply
myactivechild
Thanks for posting Elyon. I just tried this and now it directs me to Page Not Found. I think it may be because wordpress names my post according to the title, example the page it told me it couldn't find was:http://www.myactivechild.com/manage/blog/2011/09/30/giveaway-family...

and the actual entry on my website blog can be found at:http://www.myactivechild.com/blog/?p=14...
elyon replied on at Permalink Reply
elyon
If you enable "pretty" permalinks in your WordPress add-on, you can have URLs with the same signature.

Just make sure you are running Concrete 5.4.2 or later, and have pretty URLs turned on for your site.
myactivechild replied on at Permalink Reply
myactivechild
I also wanted to post this plug-in as a possible solution:http://wordpress.org/extend/plugins/page-links-to/... I haven't been able to try it because the new Wordbooker version has so many bugs and it isn't posting my new posts with links or photos, but from what I read it may be a viable solution as well.....

That being said I would rather have a "built in" solution instead of having to adjust the setting each time :)

concrete5 Environment Information

Browser User-Agent String

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.