First add get to query vars array:
function add_query_vars_wpa12572($vars) {
$vars[] = 'get'
return $vars;
}
add_filter('query_vars', 'add_query_vars_wp12572');
then add the rewrite rule
function author_rewrite_rules_wpa12572( $wp_rewrite ) {
$newrules = array();
$new_rules['get_(\d*)$'] = 'index.php?get=$matches[1]';
$wp_rewrite->rules = $new_rules + $wp_rewrite->rules;
}
add_filter('generate_rewrite_rules','author_rewrite_rules_wpa12572');
Related Posts:
- Need help with add_rewrite_rule
- How does WordPress handle permalinks?
- How to get pretty URLs with add_query_arg in permalinks
- Creating custom permalink structure for languages
- How to add a custom URL placeholder to author archives?
- permastruct for custom post type not working in one of four cases
- Make post slug have priority over category slug
- Remove subfolders from URL
- Remove parent slug for child pages
- flexible rewrite ‘ramble’ URLs with WordPress
- Nice RSS Feed URLs for each custom post type
- Change the custom post type permalink
- Custom rewrite rules for feeds of custom queries (query_var query strings in URL)?
- Auto 301 to full post permalink? (using /posts/%post_id%/%postname%)
- Put post ID on the custom post type URL
- Rewrite url / permalink for default archive – yearly / monthly
- Permalinks, Rewrites, Get Variables, Oh My!
- Change permalink for a single post entry
- Remove the Parent category from the permalink but leave the child category
- How to Modify Existing Rewrite Rules?
- Apostrophe in permalink results in page not found
- Image Attachment Url Rewrite
- Rewrite Page with a slug before page name
- Can’t get rewrite rules working
- Rewrite my default post URL
- When is it a good idea to build a permalink structure from scratch?
- If the only permalink setting is %postname% what happens in the case of old duplicates?
- How to reset canonical URLs / fix redirect loop
- Permalinks: Page Not Found
- Does changing a post title of a published post automatically change permalink?
- Remove custom taxonomy base from URL
- remove sub-category of Custom Post Type from permalink structure
- WordPress Permalinks & Nginx Rewrite Rule Not Working
- Is a permastruct possible on pages?
- Rewrite rule for a query string
- How to add a variable as a tag base?
- WPML – how to get the permalinks to display also the default language
- Need to add trailing slash to all internal links relative and absolute
- How can i have a custom post type with more slugs for each post?
- URL rewriting: removing the site’s basename for a specific category
- Unable to get /%postname%/ permalinks working, 404 on all links
- Permalink structure between 2 custom post types and a taxonomy
- How to rewrite a URL to another rewritten URL without changing the address?
- Disable date based archives for all categories except one
- How can I emulate permalink behaviour on static pages
- wordpress how to replace url /bar with foo/bar for custom post type
- Remove parent page from url
- Getting back a permalink from custom url
- Permalinks on Windows IIS not working and web.config breaks site – does wordpress not support windows server now, if so how?
- Exclude single page from permalink rule
- Bulk append URL (add word to slug)
- add_rewrite_rule – Page Slug from “/foo-bar/” to “/foo/bar/”
- How are WordPress Page URLs affected by permalink settings?
- WordPress pages and posts are redirecting to server IP address instead of domain URL [closed]
- Access or edit custom generated permalinks with WP_Rewrite
- optional parameter in permalink structure
- Rewrite rule not passing variable
- Access posts while mod_rewrite is broken
- “set_front” => false on custom post type breaks wp_list_categories links [closed]
- All in One Seo and Permalinks
- remove SLASH on single_post but KEEP on categories and parent pages
- Make the blog page a child of another page and rewrite the blog url
- WordPress keeps removing query var from the URL
- How to construct a dynamic rewrite rule for child pages that passes more than one query var
- How can I access to the same post-type “page” from multiple different urls?
- Multiple URL rewrite rules and get every prams
- Using a template file for a specific custom URL
- Extra url paths as variable
- Passing parameter through permalink structure
- Add word to permalinks does not transform the urls
- Add slug to default post permalinks ONLY
- append current user-id to all internal permalinks
- rebuilding/ rewriting a url to make it SEO friendly
- No Ones Been Able to Override my WordPress Rewrite Rule Issue!
- My permalinks for all pages and posts now include old page titles as parents/categories
- Pagination links for taxonomy archive page 404 error on every page except first
- WordPress Pagination Custom Rewrite Rule for Pages
- Change all pages permalinks instead of hierarchical to have id of the page
- How to change URL of my pages?
- How can I get .html URL suffixes in permalinks?
- rewrites and custom links in page need help with add_rewrite_rule
- Category-dependent custom permalink
- Converting WP Page to use full explicit paths?
- How to create an IIS7 re-write rule for a single category
- All pages lead to home
- Although rewrite engine is on, I get 404 not found on every page
- Customized author slugs not working with get_author_posts_url method
- Remove index.php from WP 8.0 install migrated to IIS from Apache (still detecting Apache server)?
- ?posts_type=xxx not rewritten
- Update permalinks
- Losing the original URL when using add_rewrite_rule
- Custom permalink variable on single post
- URL to an image in a post is changing when permalink is set to custom. Can I avoid this?
- region selection
- WordPress custom permalinks, pages are now 404
- Include language variable in url
- Creating complex URLs with WordPress permalink structure
- How to get the perfect WordPress, WooCommerce, Custom Post Type pretty permalinks?
- Using a variable in page permalink
- How to make my custom permalink pull up the correct post