# Change the Author URL Base From /author/ to /team/

> Changes author archive addresses from /author/name/ to a word of your choice, such as /team/name/ or /writers/name/, to match how your site talks about its people.

- Type: PHP
- Runs: Run everywhere
- Category: [Developer](https://wpide.com/library/category/developer/)
- Tags: rewrite-rules, authors, permalinks
- Author: WPIDE Team
- Installs: 0
- Updated: 2026-10-28
- Page: https://wpide.com/library/rewrite-author-base-slug/

## Code

```php
// New base for author archive URLs.
$wpide_author_base = 'team';

add_action( 'init', function () use ( $wpide_author_base ) {
    global $wp_rewrite;
    $wp_rewrite->author_base = sanitize_title( $wpide_author_base );
} );
```

## Notes

Visit Settings > Permalinks and click Save once after activating or changing $wpide_author_base, so the new rules are built.

## How to use it

Install the free WPIDE plugin (https://wordpress.org/plugins/wpide/), find "Change the Author URL Base From /author/ to /team/" in its snippet library and add it in one click; or create a new PHP snippet in WPIDE (or any code snippets plugin) and paste the code above. More snippets: https://wpide.com/library/
