As you’ve discovered WordPress ignores rewrite rules added into your .htaccess file manually. Not many people actually know WordPress has in-built functions, a core rewriting class that allows you to add custom rewrite rules into your themes functions.php file.
You can read up on the WP_Rewrite class here and if you do a search on this site you will find numerous questions from people asking to do similar things.
I am a firm believer that writing and posting the code for you is cheating, but if you visit the aforementioned link and do a search you will find all the info you need to implement custom rewrite rules.
Of course if you get stuck, please post the code you do end up writing and I amongst others will gladly help you out and point you in the right direction.
Related Posts:
- WordPress site hacked. Has .htaccess been hacked?
- .htaccess and 500 error, extra character added
- Place static HTML files in path below WordPress page
- Static raw HTML page
- htaccess rewrite for author query string when WP is in subfolder
- Why “Settings->Permalinks” creates .htaccess file on nginx server?
- .htaccess for wordpress inside another wordpress install
- .htaccess file redirecting to parent directory
- Rewrite /?rest_route=/ link to /wp-json/ without changing default permalink structure in apache
- Globally force SSL on all pages
- Rewrite rule not working
- What is the role of .htaccess file in WordPress?
- How have I misconfigured basic auth for my wordpress site?
- Remove File Extension for Page Outside of WordPress
- WordPress trims off the forward slash when import
- WordPress best solution shared theme for consumers and businesses (two url’s one instaltion)
- Redirect main domain to subdirectory
- different child theme for subdomain
- How do I edit the htaccess file to optimize my website?
- Block only external access to wp-cron.php on OpenLiteSpeed
- Removing code added to htaccess with insert_with_markers
- Site searches by Python for non-existent assets
- WordPress On subfolder
- WordPress 404 on Subdomain
- Can’t Access Subdirectory
- Override htacces rule only for specific directory
- How To Allow Only Specific User Agent To Access a URL?
- How to ignore folder in site root while accessing a URL
- Htaccess redirect after changing Language URL format
- How can I enable keep alive (Not accessing to Apache)
- HTTP sitewide, except for: wp-admin, and 2 custom directories
- WordPress installed in root, need second in subdirectory with different domain
- htaccess has broken my site
- TimThumb & htaccess : clean url
- HTTP Error 406 always on site?
- Point all URLs to homepage but maintain URL
- htaccess working on local server but not on live server
- External content won’t load in iframe in Safari
- How to write .htaccess so that https is on for subpages only but not the home page
- Only Allow Front End Access
- .htacess rewrite condition: page to seconddomain/page
- Custom rewrite rule, url returning 404
- mod_rewrite doesn’t work as I want even with JSON API Plugin disabled
- WordPress .htaccess file gives issues with subdirectory
- Need help rebuilding lost htaccess file
- W3 Total Cache CSS & JS files GZip issues [closed]
- WP Super Cache unable to locate cache file for only the homepage
- Cannot login to WordPress site after changing .htaccess for security purposes
- WordPress permalink, stop redirection
- How to rename index.php to home.php
- Strange behaviour of is_user_logged_in() and get_current_user_id()
- add_rewrite_rule to remove /category/ from permalink
- Creating a copy of a website in a subdirectory, wp-admin redirect problem
- disable WordPress 404 for one specific page/folder to receive actual php errors
- .htaccess Non-‘www’ to ‘www’ Subdomain Redirection Only Works for Homepage
- .htpasswd asking for authentication on home page
- Non WordPress Folder in a WordPress Site
- WordPress login fail after .htaccess domain redirect
- Redirect to new domain with .htaccess [closed]
- Access sub-domain when root public_html is protected with .htaccess password
- Redirect https://www.subdomain.domain.com is not redirecting to subdomain.website.com [closed]
- Can’t access htaccess [closed]
- Htaccess rewrite based on query string, not working [closed]
- Redirect all subdomains to root domain
- Change root directory
- .htaccess redirect not properly working [ ?utm_source=]
- 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
- Should I prevent access to .htaccess and wp-config.php files?
- Blocking wp-login in HTACCESS has also blocked password protected pages
- htaccess redirect to path
- htaccess redirects invalid request to home page not 404
- Non-wordpress subdomain on Multisite Installation
- Unable leverage Browser Caching on AWS Bitnami stack (Apache) through W3TC and Cloudfront CDN
- Downloading zip or tar.gz inside WordPress installation?
- WordPress permalinks is wrong. It wants me to change my htaccess file. But then site crashes
- Clicking PUBLISH Now Redirects to 404 PAGE NOT FOUND
- Unable to find ‘full-path’ to my 404.php file
- Rewrite rules and maintain URL
- Use htaccess to redirect wordpress non-existent page to homepage
- 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
- How can I create a private site that is inaccessible from the outside?
- .htaccess and virtual host configuration for WP in its own directory
- 403 forbidden due to .htaccess?
- Issue after changing permalink structure [duplicate]
- Where is the htaccess in wordpress.com hosting?
- rewrite rule on plugin activation
- Debug errors for “Destination directory for file streaming does not exist or is not writable”
- Url redirection using htacess for my website
- WordPress Media Library rendering blank image tiles
- How To Add CSP frame ancestors in WordPress Website? [closed]
- Subfolder install not working
- Redirect loops in Bing holding my sites back
- Permalinks not working on debian with OVH