ErrorDocument 410 gives me back a 302 header
ErrorDocument 410 gives me back a 302 header
ErrorDocument 410 gives me back a 302 header
It turns out it was because the default category archive pages do not require the URL to start with /category. WordPress already matches the path /{category-slug} for the default category taxonomy archive. I fixed it by changing the default category archive rewrite to start with /category. function move_category_rule($rules) { if(array_key_exists(‘(.+?)/?$’, $rules)) { $val = $rules[‘(.+?)/?$’]; … Read more
I found the solution… add_filter( ‘term_link’, ‘remove_slash_taxonomy’, 10, 2 ); function remove_slash_taxonomy( $permalink, $term ) { if ($term->taxonomy == ‘nieruchomosc’) $permalink = str_replace(“https://wordpress.stackexchange.com/”.$term->slug.”https://wordpress.stackexchange.com/”, $term->slug, $permalink); return $permalink; }
.htaccess to redirect to a wp page
Rewrite WordPress Url from root to subfolder without moving files
From what I know you can use the post_updated or the save_post hooks https://developer.wordpress.org/reference/hooks/post_updated/ https://developer.wordpress.org/reference/hooks/save_post/ Hope that this help. If you need any other info please let me know. Update: Sorry for my misunderstanding. You can use the the_permalink filter. Below you have the docs https://codex.wordpress.org/Plugin_API/Filter_Reference/the_permalink
Multiple Taxonomy Items for Separate URLs
CPT – Nice url with add_rewrite_rule
How to properly set the rewrite rules for this case?
add_action( ‘init’, function() { add_rewrite_rule( ‘(.+)/search/(.+)/?$’, ‘index.php?post_type=$matches[1]&s=$matches[2]’, ‘top’ ); } ); It works done.