PERMALINK PROBLEM-HAVING MORE THAN TWO PERMALINK FOR SAME POST
-
hello!
I am facing a problem with my PERMALINK.Previously the permalink of my site was
https://www.watchonlineshow.com/category/hollywood/hollywood-movies-by-year/hollywood-movies-of-2012/then I added a code in my functions.php file, also I activated a plugin called”No Category Parents ” to make my permalink look like this
https://www.watchonlineshow.com/hollywood-movies-of-2012/
AND THE CODE IS :add_action( 'init', 'build_taxonomies', 0 ); function build_taxonomies() { register_taxonomy( 'category', 'post', array( 'hierarchical' => true, 'update_count_callback' => '_update_post_term_count', 'query_var' => 'category_name', 'rewrite' => did_action( 'init' ) ? array( 'hierarchical' => false, 'slug' => get_option('category_base') ? get_option('category_base') : 'category', 'with_front' => false) : false, 'public' => true, 'show_ui' => true, '_builtin' => true, ) ); }
Now the problem is that all previous links as well as new links are working and the same page is loaded from both urls. I want to know whether this is 301 Redirect? Or its a bad thing
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘PERMALINK PROBLEM-HAVING MORE THAN TWO PERMALINK FOR SAME POST’ is closed to new replies.