WordPress.org

Support

Support » How-To and Troubleshooting » Adding a rule to .htaccess for custom author page

Adding a rule to .htaccess for custom author page

  • I’m currently finishing off a WP site (http://new.crainc.com), and want to have custom bio’s for team members (authors/users). I’ve currently got WP writing the .htaccess for me:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    # END WordPress

    But I want the author profiles to be visible whether or not the author has posted anything – therefore the current default (/archives/author/author_name) won’t work as it gives a 404 if the author hasn’t posted anything. Ideally, I’d like these bio’s to be available at (/team/author_name) or (/author/author_name).

    Could someone please help me with an additional .htaccess rule that I need to intercept/rewrite these author requests?

    Many thanks,
    Jeremy

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Adding a rule to .htaccess for custom author page’ is closed to new replies.
Skip to toolbar