WordPress.org

Ready to get started?Download WordPress

Forums

Adding a rule to .htaccess for custom author page (5 posts)

  1. jarv75
    Member
    Posted 8 years ago #

    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

  2. jarv75
    Member
    Posted 8 years ago #

    This is the kind of thing I've been trying...

    RewriteRule ^author/([^/]+)/?$ /index.php?author_name=$1 [QSA]

    Any help appreciated.

  3. neeKlamy
    Member
    Posted 8 years ago #

    Just a "me too". I'd like to set up user pages, but most of my users won't be posting.

    Interestingly, the plugin, Get Author Profile http://wordpress.org/support/topic/39042?replies=12 will show all users/subscribers/authors/admin. I want to use that which would then link to individual profile pages.

  4. adminbarnhardnl
    Member
    Posted 7 years ago #

    I'm having the same problem on my websites. I am using Scott Yangs Permalink Redirect plugin 0.5.3:

    http://fucoder.com/code/permalink-redirect/
    also read:
    http://fucoder.com/2006/02/permalink-redirect-wordpress-plugin-05/

    But for some reason only the authors pages are shown and not my user pages:

    http://www.bangkoktalk.nl/alle-leden/ and http://www.ochblog.com/members/

    I see that this is not a real active page, so please comment if you've a solution.

    I'm using wp 2.0.2 and working on this problem for quite some time now. I'm not a complete noob but this bug is pretty nasty for me.

    Anyone ? :-)

  5. adminbarnhardnl
    Member
    Posted 7 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic