Title: Post redirecting
Last modified: August 30, 2016

---

# Post redirecting

 *  [pennysstuff](https://wordpress.org/support/users/aroundadelaide/)
 * (@aroundadelaide)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/post-redirecting/)
 * I am having an issue where when I try to access one post it is redirecting me
   to another post. I have disabled all plugins and changed themes but the issue
   is still there. Not sure yet if it is only this page.
 * When access the offending page via the dashboard and go to the editing screen
   I can see the correct entry/code, but when I click Preview or View Post it displays
   the incorrect post.
 * Where do I look to try and work out why this is happening?
 * Thanks in advance.

Viewing 9 replies - 1 through 9 (of 9 total)

 *  [dev_danidhariya](https://wordpress.org/support/users/dev_danidhariya/)
 * (@dev_danidhariya)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/post-redirecting/#post-6838323)
 * Dear Penny,
 * i’m not sure but try this.
 * i)disabled your .htaccess file(remove or rename. **Please take backup before**).
 *  Thread Starter [pennysstuff](https://wordpress.org/support/users/aroundadelaide/)
 * (@aroundadelaide)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/post-redirecting/#post-6838368)
 * Thanks Dev – unfortunately doing that did not resolve the problem.
 *  [dev_danidhariya](https://wordpress.org/support/users/dev_danidhariya/)
 * (@dev_danidhariya)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/post-redirecting/#post-6838374)
 * Dear Penny.
 * can you give me live url.so, i can see.
 * Regards
    Dev.
 *  Thread Starter [pennysstuff](https://wordpress.org/support/users/aroundadelaide/)
 * (@aroundadelaide)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/post-redirecting/#post-6838432)
 * Hi Dev
 * The post I want: [http://www.pennysstuff.com/a-good-man/](http://www.pennysstuff.com/a-good-man-chapter/)
 * The post I get: [http://www.pennysstuff.com/a-good-man-chapter-008/](http://www.pennysstuff.com/a-good-man-chapter-008/)
 * Thanks.
 *  [dev_danidhariya](https://wordpress.org/support/users/dev_danidhariya/)
 * (@dev_danidhariya)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/post-redirecting/#post-6838456)
 * Dear Penny,
 * Redirect is possible using this method.
 * > i).htaccess
   >  ii)redirecting plugin. iii)custom redirect code in theme,plugin,
   > any where in wordpress.(in theme most code written in function.php file).
 * in your case possible solution is try this.
    i)edit post slug.(Like **a-good-
   man** to **my-test-post-man**). ii)change permalink and test. iii)final solution
   is create new post and add this post contained in this post.
 * Regards
    Dev.
 *  Thread Starter [pennysstuff](https://wordpress.org/support/users/aroundadelaide/)
 * (@aroundadelaide)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/post-redirecting/#post-6838465)
 * Thanks – I ended up deleting both posts and recreating them. Renaming the slug/
   permalink did stop the redirect, changing the name back to my naming convention
   started the redirect once again so deleting and recreating seemed to be the only
   option.
 *  [jalinb](https://wordpress.org/support/users/jalinb/)
 * (@jalinb)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/post-redirecting/#post-6838534)
 * I am having the same issue with 25+ posts redirecting to other posts with similar
   slugs, even if they are in different categories.
 * > **Example:**
   >  – [http://www.site.com/some-category/some-post-3/](http://www.site.com/some-category/some-post-3/)–
   > [http://www.site.com/different-category/some-post-2/](http://www.site.com/different-category/some-post-2/)
   > **Both get redirected to:**
   >  – [http://www.site.com/another-category/some-post/](http://www.site.com/another-category/some-post/)
 * I have found other people posting having the same issue, but I have found no 
   fix yet, besides renaming the slugs to have no similarities.
 * **Other Posts:**
    1. [https://wordpress.org/support/topic/post-redirecting](https://wordpress.org/support/topic/post-redirecting)
    2. [https://wordpress.org/support/topic/2-posta-are-redirecting-to-another-post](https://wordpress.org/support/topic/2-posta-are-redirecting-to-another-post)
    3. [https://wordpress.org/support/topic/redirect-post-to-post-1-in-wordpress-44](https://wordpress.org/support/topic/redirect-post-to-post-1-in-wordpress-44)
    4. [https://wordpress.org/support/topic/weird-redirect-error-happening-since-last-update](https://wordpress.org/support/topic/weird-redirect-error-happening-since-last-update)
 *  Thread Starter [pennysstuff](https://wordpress.org/support/users/aroundadelaide/)
 * (@aroundadelaide)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/post-redirecting/#post-6838551)
 * I’m noticing more and more posts that are redirecting. Even posts that don’t 
   have similar names, but are in the same category. It’s getting quite annoying
   to be honest.
 *  [dev_danidhariya](https://wordpress.org/support/users/dev_danidhariya/)
 * (@dev_danidhariya)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/post-redirecting/#post-6838552)
 * Hello Friends,
 * **in your site any where like this type of code.
    find this type code and remove.
 *     ```
       $category = get_the_category();
       $category_id = $category[0]->cat_ID;
       $relocate = get_category_link($category_id);
   
       wp_redirect($relocate);
       OR
       header("Location:".$relocate);
       ```
   
 * Regards
    Dev.

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Post redirecting’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 9 replies
 * 3 participants
 * Last reply from: [dev_danidhariya](https://wordpress.org/support/users/dev_danidhariya/)
 * Last activity: [10 years, 5 months ago](https://wordpress.org/support/topic/post-redirecting/#post-6838552)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
