WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
up vote 1 down vote accepted

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

Redirect 301 /author http://yourdomain.com/profile
share|improve this answer
Nice! Thank you. – drabello Feb 25 '13 at 20:19
@drabello glad to be of help :-) – Camil Staps Feb 25 '13 at 20:19

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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