Anyone know about modding the url using the htaccess file?

[ad_1]

Hello so I’ve not done much with rewriting or otherwise modding the url within the htaccess file. Here’s what I’m trying to do:

Client’s website has certain pages that are being generated outside of WordPress by an integrated 3rd party platform. These pages all end in a numerical ID. What I’m trying to do is a rewrite to check if the url has that numerical id and then add a query string at the end: ?clearcache=1.

If anyone has any insights I’d really appreciate it. I don’t really get how these regular expressions work.
The url also contains the “category” (not in wordpress terms) so I guess I could write separate rules to mach specific words and add the query to the end?

Thanks

[ad_2]
1 Comment

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer