0

I have changed the /author/ slug to /profile/ by adding the following code in the file functions.php:

function new_author_base() {
global $wp_rewrite;
$author_slug = 'profile';
$wp_rewrite->author_base = $author_slug;
}
add_action('init', 'new_author_base');

Since Google is crawling my author pages now I need to redirect the old /author/ urls to the new /profile/ ones in the .htaccess...

Any ideas?

1 Answer 1

1

Add this to 'your' section of the .htaccess file (so not in the WordPress section):

Redirect 301 /author http://yourdomain.com/profile
1
  • @drabello glad to be of help :-)
    – user26607
    Commented Feb 25, 2013 at 20:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.