Force wordpress to display page with same url structure as categories
Force wordpress to display page with same url structure as categories
Force wordpress to display page with same url structure as categories
One Specific Category To Permalink
Taxonomy custom post type URL
How to preserve the query string while using add_rewrite_rule and default public query vars
Try something like the following at the top of the root .htaccess file, before the existing WordPress directives (before the # BEGIN WordPress comment marker): RewriteCond $2 !^(index\.php)?$ RewriteRule ^(subfolder)/(.+) /$1/index.php?path=$2 [L] The RewriteCond directive is to ensure that it doesn’t try to rewrite requests for index.php itself (or the directory). A request for /subfolder/ … Read more
The issue with your updated code is that because you are using add_rewrite_rule() inside the filter, it can’t properly add it to the top of the list. You can see this if you dump out the $rules array. Because it gets added to the end of the $rules list, WP steps in beforehand to match … Read more
You can create an Apache .htaccess internal rewrite RewriteEngine on RewriteCond %{QUERY_STRING} ^state\=AL$ RewriteRule ^club/$ /club/AL? [L]
How to add a custom redirect rule for Post as subdomains?
Serve specific “template” page at any URL that ends in its slug
@Hi Beau Simensen: The hook plugsin_loaded is one option, but you can use the plugin I posted for this question to see what plugins are run and in which order and use it to find the hook that works best for you: Where Can I Find a List of WordPress Hooks? Given your goal, you … Read more