• I customized the author.php template so it displays profile information (firstname, lastname, URL etc.) on https://example.com/blog/author/daniel/ and shows recent posts when adding a GET variable like this https://example.com/blog/author/daniel/?display=all.

    As far as this goes, everything’s fine and working. But I don’t like the ugly-URI version with the display=all variable, so I did the following in the .htaccess:

    RewriteRule author/([^/]+)/all/$ author/$1/?display=all

    But, sadly, this isn’t working and I’m getting a 500 Internal Server Error. The RewriteRule above works, when I remove the /all at the regexp, so the rewriting itself works.

    Solution tested, that didn’t work:

    global $wp_rewrite;
    $wp_rewrite->add_external_rule( 'regexp', 'redirect' );
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘example.com/blog/author/daniel/all/ – How? htaccess 500 Internal Server Error’ is closed to new replies.