I’m pretty sure you have wrong “rewrite” parameter in your add_rewrite_rule
call.
I’m writing it directly in here, so it can be buggy… But it should look something like this:
add_rewrite_rule('^authors/([^/]*)/([^/]*)/?','index.php?page_id=<YOUR AUTHOR PAGE ID>&my_author_name=$matches[1]&my_author_pic=$matches[2]','top');
Then you can use add_rewrite_tag
(http://codex.wordpress.org/Rewrite_API/add_rewrite_tag) to add your custom query variables (my_author_name
and my_author_pic
).
And in your author page you should use these custom query variables.
Related Posts:
- How to add custom rewrite rule to .htaccess?
- SEO Friendly URLs for my plugin categories
- Custom rewrite rules are sending everything to index.php
- WordPress keeps writing rewrite rules to .htaccess
- WordPress Rewrite
- Dynamic URL, not a physical page within the database
- Custom rewrite rule
- hard flush_rewrite_rules() not regenerating .htaccess
- Map alt domain to specific section of website w/o MU
- Rewrite rule to load images from production does nothing
- WordPress rewrite rules don’t need ^?
- Url Rewriting a dynamic wordpress page
- My WP_options db rewrite_rules Does Not Work
- Disable Pagination on Pages
- .htaccess rewrite
- Changed pagination URLS to use p= instead of paged=
- Rewriting “pretty” blog category URL with htaccess / add_rewrite_rule() causes 404 page
- WordPress keeps writing rewrite rules to .htaccess
- Customise particular RSS permalink
- RSS feed rewrite matching wrong rule
- Rewrite specific action url
- How do I make WordPress revise an .htaccess file a certain way?
- Rewrite rule that wp-login.php?action=register is left alone
- Pretty URL via Rewrite
- Migration from old CMS to WordPress 301 redirection rules?
- What is the proper way to use add_rewrite_rule to remove the (question mark)?
- Can’t get pretty permalinks to work without index.php
- Rewrite Page Parameters
- WP-Include rewrite directory
- Change the “page” slug in pagination
- Understanding add_rewrite_rule
- Rewrite Rules for Multiple (more than 2) Taxonomies
- add_rewrite_rule not loading correct page nor getting variables
- WordPress URL rewrite regex
- Blog installed in subdirectory but need to create pages in root. How to use permalinks?
- Custom rewrite rule for backend/admin?
- How to have multiple rewrite endpoints in the same URL?
- htaccess: Remove trailing slash from URL ending with .xml/ only
- add_rewrite_rule is not taking effect in WordPress? .htaccess file doesn’t update
- Remove all categories from URL
- Add specific word to default page permalink
- Plugin action rewrite rule – non_wp_rules
- Custom query_vars and parse_request on wp-admin
- Have two different URLs show the homepage
- WordPress SSL (https) is not working with custom permalink
- remove query arg from url after set query
- NextGEN Gallery Lightbox – Social Share URL Redirect
- WordPress .htaccess blocks mine?
- Rewrite Preview URL to include index.php
- Custom rewrite_rules – only pass numbers and not alphabetic characters
- Rewrite ugly URL to clean URL
- How can I dynamically generate an image with a static image URL?
- Rewrite wp-login.php URLS to static pages?
- Rewrite custom post type URL parameters
- How to remove wordpress directory slash
- Rewrite: WordPress URL rewrite on Search
- React Router with WordPress
- joomla to wordpress migration and 404 errors issues [closed]
- How to write Rewrite rule for same path using Rewrite API?
- URL rewriting with custom user meta “/%shop_name%/gallery/%gallery%”
- URL Rewrite and add_query_var not working
- How to add custom rewrite rules and point to specific templates
- Custom rewrite after the default term link URL
- How can I reduce the number of rewrite rules?
- ow to change cutsom page url of wordpress site using htaccess
- Get wordpress installation folder
- Name page template properly
- One off rewrite for single post-type slug (show normal page with same URL instead)
- WordPress .htaccess ignore path and subsequent .htaccess files in subfolders
- WordPress rewrite rules not working
- How to customize sub-URLs in a wordpress website (.htaccess)
- WP redirect rule doesn’t work
- URL rewrite in theme doesn’t seem to be working
- Custom url structure – pages under a custom post type
- Trying to add array of paths to post permalink
- How to rewrite URL back to default custom URL if no destination found
- Dynamic URL with rewrite rule not working
- How can I add a vanity URL for admin-ajax.php Calls?
- Remove part from dynamic url and redirect
- How to get relative page for every post: /post-1/contact. /post-2/contact
- Rewrite rule can’t get the ID from rewrited
- WordPress Rewrite Rule to EITHER Match 1 or 2 Taxonomies when adding to URL
- WordPress numeric (yearly) page names / disable yearly archives
- Is it possible to rewrite a page URL from ID to name from an API?
- Moved WordPress to Subdirectory, still hijacking requests to files outside of its directory
- Rewrite Rule added but showing 404 rather than specified page
- Url wordpress rewrite
- Blog List Page 404 With Custom Post Type Rewriting to Blog Parent
- ModRewrite not working properly
- Need help with custom rewrite rule
- WordPress doesn’t remember my custom rewrite rule
- Custom urls in WordPress involving page slugs
- rewrite rules social share links
- add_rewrite_rule is not fired
- URL rewrite results in a 404, but everything should work!
- Custom URL scheme – paramters on custom post type
- get_permalink is getting old rewrite rule
- Apache rewrite rules and wordpress problem
- WordPress Custom Rewrite Rule
- WordPress post-type create url rewriting