Ok managed to figure this out, instead of adding action for a rewrite. Because what I was wanting to rewrite was a taxonomy i should have been using something like this :
'rewrite' => array('slug' => 'listings/make', 'product_make_model' => false)
When registering the taxonomy, which basically rewrites the slug as the taxomomy is created/registered.
Works perfectly.
Related Posts:
- htaccess rewrite conflict with wordpress rules and ssl
- Rewrite /?rest_route=/ link to /wp-json/ without changing default permalink structure in apache
- WordPress site displaying 404 for any page apart from index
- .htaccess Rewrite URL WordPress
- different child theme for subdomain
- Struggling with add_rewrite_rule
- .htaccess rewrite rule puzzle
- need a help for modify .htaccess rule [closed]
- Best way to redirect site in subdirectory to root?
- How can i redirect one url to another url using .htaccess or add_rewrite_rule
- TimThumb & htaccess : clean url
- What to write in the htaccess in order to detect browser language and point accordingly?
- want to rewrite an URL in wordpress
- How to turn this .htaccess rule into a dynamic rule with add_rewrite_rule, et al?
- htaccess problem not being able to overwrite previous rules
- add_rewrite_rule to remove /category/ from permalink
- Relative links stop working after moving wordpress site from hosting to localhost
- htaccess redirect throws an error: PHP Catchable fatal error: Object of class WP_Error could not be converted to string
- Rewrite URL in address bar for a specific page [closed]
- How do I reset a rewrite?
- Rewriting subfolders to specific parent folder in WordPress
- Redirect default pagination page to template page’s pagination
- Remove subdirectory from links
- Rewrite rules and maintain URL
- WordPress URL not working?
- rewrite rule on plugin activation
- .htaccess rewrite rule stopped working for wordpress site after moving server
- WordPress site hacked. Has .htaccess been hacked?
- Static raw HTML page
- .htaccess file redirecting to parent directory
- Globally force SSL on all pages
- Dynamic URL, not a physical page within the database
- Rewrite rule not working
- Correct htaccess to display page while also passing in GET parameters
- Using “wordpress_logged_in” to restrict direct access to uploads folder in 2021
- Temporary .htaccess blocking is disabling WP Crons from running?
- .htaccess redirects disappeared after re-saving permalinks
- WordPress trims off the forward slash when import
- WordPress multilingual website domain and folders
- Attach to wp-login.php and xmlrpc.php
- XMLRPC filtering through htaccess not working
- Corrupt .htaccess file
- Cache policy not updated according to PageSpeed
- Can’t Access Subdirectory
- What’s the opposite of required valid user in .htaccess authentication
- When is it necessary to have Header unset Vary in .htaccess
- Redirect http to https does not work on subdir where another instance of WordPress installed
- redirect the homepage using .htaccess outside of WordPress
- Https Redirect infinite loop in Mobile browsers
- Url Rewriting a dynamic wordpress page
- 403 error on admin login page
- Custom Permalink
- add_rewrite_rule on multisite doesn’t work
- Apache Fallback instead of add_rewrite_rule
- Redirect an old link to new site homepage [closed]
- .htaccess rewrite
- .htaccess rewriting old RSS feed URL to WordPress feed URL
- How can I set Cache TTL for woff and woff2 font files with htaccess?
- How can I fix the redirect chain after implementing ssl on wordpress?
- How do I configure wordpress structure for development using git and composer
- Rewriting “pretty” blog category URL with htaccess / add_rewrite_rule() causes 404 page
- How to create a redirect in the .htaccess file, with 2 exceptions
- My Homepage Suddenly Disappeared and I Can’t Get It Back
- Multisite theme path rewrite using .htaccess
- WordPress keeps writing rewrite rules to .htaccess
- W3 Total Cache CSS & JS files GZip issues [closed]
- WP Super Cache unable to locate cache file for only the homepage
- Disable directory browsing of uploads folder
- Local PC cache stays filled with old WordPress Site data
- How to have a custom URI path for specific page template
- WordPress JSON API restrict to specific domain
- Where to put W3 Total Cache rewrite rules in .htaccess? [closed]
- Redirect all subdomains to root domain
- Redirect old query string URLs to new add_rewrite_rule URL
- Change root directory
- How to execute WordPress as though it is in the root folder while it is installed in a subdirectory?
- Htaccess maintenance page rules that actually work with WordPress?
- How to allow only vpn access to dashboard on Bitnami WordPress by IP address restricting
- ErrorDocument 410 gives me back a 302 header
- Should I prevent access to .htaccess and wp-config.php files?
- Blocking wp-login in HTACCESS has also blocked password protected pages
- How to create multiple Rewrite-Rule for various site in single htaccess?
- htaccess redirect to path
- Non-wordpress subdomain on Multisite Installation
- Unable leverage Browser Caching on AWS Bitnami stack (Apache) through W3TC and Cloudfront CDN
- Clicking PUBLISH Now Redirects to 404 PAGE NOT FOUND
- Subfolder renaming
- Targeting .htaccess file with file_put_contents
- Redirect Loop in Regex Moving to HTTPS
- .htaccess file changes disappear
- Need to edit htaccess while moving on WordPress
- WordPress login bug. Need an emergency solution
- Change Admin URL
- .htaccess and virtual host configuration for WP in its own directory
- 403 forbidden due to .htaccess?
- Can’t get pretty permalinks to work without index.php
- Where is the htaccess in wordpress.com hosting?
- Debug errors for “Destination directory for file streaming does not exist or is not writable”
- WP-Include rewrite directory
- Permalinks not working on debian with OVH