I found the solution here: http://pmg.co/a-mostly-complete-guide-to-the-wordpress-rewrite-api
Related Posts:
- Old blog/ and blog/feed/ URLs not working after moving blog to top-level via .htaccess
- add_rewrite_rule to pass entire path as a single parameter
- RedirectMatch and Redirect interfering with each other
- url keeps redirecting to a page
- Why specific file directory fails to redirect but its parent folder succeeds?
- Redirect home to another page with htaccess
- Redirections and rewrites to subdomain
- Image URLs not redirecting properly
- Create a permalink to a pdf?
- Custom URL routes
- Redirect old query string URLs to new add_rewrite_rule URL
- HTTPS to HTTP rewrite rules not working as expected
- Is it possible to change redirect template through a shortcode?
- ErrorDocument 410 gives me back a 302 header
- Redirect *.php to path using web.config file
- How to create multiple Rewrite-Rule for various site in single htaccess?
- Cannot get 301 redirection in htaccess to work (either Redirect or Rewrite)
- htaccess and redirect to new url using regex
- How do I skip wordpress’s 404 handling and redirect all 404 errors for static files to 404.html?
- Disable WordPress URL auto complete
- WordPress redirecting connections on port 8080 to 80
- 301 redirect instead of 404 when URL is a prefix of a post or page name?
- Redirect to referring page after logging in
- Redirecting WordPress /.htaccess / HSTS / SSL
- Redirect to post after submission with Gravity Forms? [closed]
- Redirect www to non-www htaccess
- Using redirection plugin to pass URLs as lowercase to wordpress
- Prevent redirect to page/page when reserved term ‘name’ in $_POST when value is a page/post title
- Redirect to login page
- Import WordPress Post Slug with Forward Slash
- Create a php callback/endpoint for an OAuth script
- Query WP data with the WPDB API from outside WordPress
- Get the final destination after WP_Http redirects (WordPress)
- Too many redirects when using wp super cache [closed]
- How does WordPress redirect without using .htaccess?
- How do I redirect a user when he is logged in after clicking on a menu
- How to redirect from various ?page_id= to home page?
- header and wp_redirect not working. cannot modify header information warning
- Code to create a redirection after login?
- Redirect 301 www.my-site.com/page/n to www.my-site.com/ [closed]
- Redirect not logged in users if they are on a specific page
- Headless WordPress redirect front-page to login page [closed]
- How to set up a single portfolio page as home page?
- 301 Redirect To Post ID
- Redirect after password update
- How code a redirect back to page from form thanks
- How to add new redirection on wordpress site
- How to use Regex to add to a url?
- htaccess redirect invoice.php to /client/invoice.php
- redirect wp-admin/install.php
- Redirect homepage with htaccess, except if I enter the link adding “/home”
- How to properly encode url with parameters for redirect_to
- How to disable redirect on pagination first page
- Redirect user to a form until they have filled it out [closed]
- Buddyboss Platform plugin causing “too many redirects”
- Redirect user to previous page after signup from custom form
- How To Fix 404 errors caused by Google Indexing WordPress In Subdirectory
- Unable to access folders in same level as wordpress installation
- 301 Redirect all page and post urls from .html to /
- Get query parameters from external url and make a redirection
- Why does specifying ‘about-us’ as a link target take longer than specifying ‘about-us/’?
- Internal Links that Automatically Update
- Usage of the login_redirect filter
- Show different page for first time user
- WP page 404 error only on mobile
- Redirect user on first visit based on geographical location
- Bedrock WordPress
- How to prevent redirect 301
- Redirect one domain to another
- Only execute function if SSL is set up properly
- How to redirect wp_login_form to new page after user loged in?
- How to redirect multiple subfolders back to root domain?
- How do I Redirect Tags from Old Joomla Site to New WordPress Site?
- How to redirect user after login to the page called by his first name?
- Redirect after get_delete_post_link
- Whenever I try to publish a post in wordpress, I always get redirected to the installation page…why?
- Login redirect to previous page
- Old missing file in wp-content/uploads/ returns a 500 error, how to catch and redirect?
- Relink Drupal Permalinks “…node/XXXX” to wordpress Permalinks (e.g./audio/)
- Hide a Post everywhere except on redirect
- Redirect Image URL to it’s parent post
- Redirect user if they are logged in
- URL redirect regular expressions redirecting all after first viriable
- WordPress site not forcing from http to https instead getting redirected too many times
- Redirect not work
- There is 1 redirect
- How to create mass 301 redirects with PHP in Nginx server without using a WP plugin
- Redirect HTTP request to HTTPS request
- All new posts serving 301 redirect
- Broken page redirect
- Moving site from HTTP to HTTPS
- Redirect from plugin created page
- Woocommerce login to specific page or referrer
- 301 Redirects when change URL in WordPress database
- Tag archive page not working
- Custom redirects with using SQL
- How to move a https website back to dev and access the admin?
- Custom Form Redirects to Post after Submit
- Why my htacess rewrite return 404?
- problem redirecting users to page on login