Prevent guessing slug
Prevent guessing slug
Prevent guessing slug
Relative URL filtering
Archive page for a custom post type using WPML
Custom shortcode with dynamic rewrite
I’d try changing the order of your rules. Once the default WP rules run, your URL will be rewritten and your last rule won’t work. SetEnv no-gzip dont-vary RewriteEngine On RewriteRule ^produse/piese-schimb-utilaje-agricole/([0-9]+)/?$ ^produse/piese-schimb-utilaje-agricole/?listpage=$1&search_field=none&value=&operator=LIKE&sortBy=denumire&ascdesc=asc&submit=&sortstring=denumire&orderstring=asc#participants-list [NC,L] # Turn mod_rewrite on RewriteEngine On RewriteBase / RewriteRule ^index\.php$ – [L] # add a trailing slash to /wp-admin RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ … Read more
Built-in Sitemap on Multi-site install produces 404?
You must use add_rewrite_rule() method, or add_rewrite_endpoint() in order to flush rewrite rules, and links you must generate with add_query_arg() method for ugly urls, for tiny u must simple concatenate with permalink
rewrite rule of post when accessed from archives pages
Add dynamic url with external page in WordPress
Alright, I solved it: I queried the year and month of the page we’re on with: $year = get_query_var(‘year’); $monthnum = get_query_var(‘monthnum’); And then I added date parameters to each WP_Query: $col1 = new WP_Query( array( ‘year’ => $year, ‘monthnum’ => $monthnum, ‘posts_per_page’ => 1, ‘cat’ => 31 ) ); This allows me to split … Read more