I believe the rewrite rule your wanting to alter is this
category/(.+?)/?$ index.php?category_name=$matches[1] category
to do what you want it should just be a case of adding the following rewrite rule in your functions.php
add_rewrite_rule('(.+?)/?$', 'index.php?category_name=$matches[1]', 'top');
this should work but might conflict with other rules so that will be worth checking.
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
- 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 Rules not redirecting rewrite
- 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
- Default .htaccess file for WordPress?
- Does this .htaccess security setting really work?
- How to add custom rewrite rule to .htaccess?
- htaccess problem after saving Settings
- File and directory permissions
- htaccess https redirect from www to non-www
- Name-based virtual host configuration in Apache seems to cause a “500 Internal Server Error”
- Isolating WordPress to a subfolder
- Why does the header set X-Robots-Tag apply to all pages?
- Error:406 not acceptable
- A plugin changes my .htaccess file and I can’t access httpd.conf as that’s a shared server
- Cache Busting using htaccess Rewrite rule?
- What is the role of .htaccess file in WordPress?
- Remove File Extension for Page Outside of WordPress
- Custom rewrite rule
- How do I edit the htaccess file to optimize my website?
- Block only external access to wp-cron.php on OpenLiteSpeed
- Site searches by Python for non-existent assets
- WordPress On subfolder
- Special domain for a page
- Create rewriterules for different domains in htaccess file with WP multisite
- Override htacces rule only for specific directory
- How To Allow Only Specific User Agent To Access a URL?
- browser caching not disabled after disabling in .htaccess
- How to ignore folder in site root while accessing a URL
- Transfer to HTTPS – mixed content on main page only [closed]
- 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
- .htaccess Security Header Rules
- WordPress installed in root, need second in subdirectory with different domain
- htaccess has broken my site
- mod_rewrite loop, redirecting http to https on certain section of wordpress blog
- Rules in .htaccess only if the requested URL is /wp-admin
- Only Allow Front End Access
- .htacess rewrite condition: page to seconddomain/page
- Separate 404 page for WordPress in subfolder
- custom url rewrite for wordpress
- Need help rebuilding lost htaccess file
- How to rename index.php to home.php
- Strange behaviour of is_user_logged_in() and get_current_user_id()
- Hide a subdirectory on my website hosting
- Can’t access WP site over WiFi network
- Creating a copy of a website in a subdirectory, wp-admin redirect problem
- I am new in word pres my font awesome is not allow
- WordPress permalinks confusion
- VServer/Rootserver/Shared Hosting: Multiple WordPress installations each having their unique domain?
- Add rewrite rule to make Woocommerce product category page seo friendly
- Rewriting request to another site
- Basic Auth .htaccess on wp-login, but allow logout from woocommerce
- Why my WordPress Site Asking for HTTP Authentication?
- htaccess redirects invalid request to home page not 404
- WordPress How to rewrite URL for custom pages
- How to properly give WordPress its own directory
- WordPress permalinks is wrong. It wants me to change my htaccess file. But then site crashes
- How to move wordpress website from hosting account to localhost
- Question with .htaccess and wp-login.php prevention
- No Ones Been Able to Override my WordPress Rewrite Rule Issue!
- WordPress RSS feed to external XML
- Does htaccess password keep search engines out?
- What to do after a wrong RewriteRule?
- htaccess old php pages to new wordpress ones
- htaccess mod_rewrite not working
- different CNAME to corresponding subfolders
- block seacrh engines for all pages EXCEPT homepage
- Giving WordPress it’s own directory and using .htaccess Directory Index
- Allowing access to certain WordPress created pages or posts with htaccess / htpasswd
- Restrict download files from not generated Urls
- How to change wordpress news root url
- htaccess – Server Subdirectory With Different Name Than URL Subdirectory
- WordPress sections in htaccess kills FrontPage permissions
- WP-Include rewrite directory
- Permalinks not working on debian with OVH