@r-a-y
“Is that a general recommendation?
”
– No! However I have only been using your two codes that works but after awhile when I found the bugs it’s causing of your codes.
1. Duplicate Content: Slash and No Slash at the End of URL
2. The page isn’t redirecting properly
“I did say it was test code. Looks like you have whitespace issues in your /registration/activate.php. Delete any trailing whitespace from the beginning of that file.”
I did put back the function bp_core_redirect_canonical in functions.php and deleted redirect trailing slash in .htaccess before process your above posted. It is the same problem I had it before except no warning error show up, only missed a key link in the domain link.
I haven’t touch activate.php in bp-default therefore when I looked for trailing space, it looks like this:
<?php /* This template is only used on multisite installations */ ?>
<?php get_header(); ?>
<div id="content">
<div class="padder">
If that is what you were talking about I deleted the whole line 1 and I tested it again and result I get when click the activation link in email:
http://www.domain.com/blog/activate/
Activate your Account
Please provide a valid activation key.
Activation Key:
There is no key link in the domain. e.g.
http://www.domain.com/blog/activate?key=afd7528c3b5664d429f94a2ed59a4c32
The line 1 in activate.php said “This template is only used on multisite installations.” I have single WordPress. Does it matter? All those error the user still able get in after clicked the activation link in the email. Huh?
Is there a fix? What is the solution for Single WP after user completed sign-up?
“Your htaccess rewrite rules look like it will interfere with querystring variables.
eg. example.com/my-page/?variable=my-test”
Ha, thanks for noticed.