WordPress.org

Forums

Remove slug from custom post type
404 and redirect loops! (5 posts)

  1. Alan
    Member
    Posted 3 years ago #

    I have a site called Digital Product Reviews and I'm using the ProReview theme which comes with a custom post types called "reviews." After activating the plugin, all of my review posts gave me 404 errors, even after I resaved my permalink settings (/%postname%/). So I deactivated the plugin, but now all of my review posts are stuck in a redirect loop! So now none of my reviews aren't working, no matter what I do.

    Any suggestions?

    Thanks,
    - Matt

    http://wordpress.org/extend/plugins/remove-slug-from-custom-post-type/

  2. Alan
    Member
    Posted 3 years ago #

    Incredibly, I finally found a way to fix it right after posting this. Simply open .htaccess and remove this:

    # BEGIN REMOVE SLUG CUSTOM POST TYPE RULES
    RewriteRule ^/(.+)/$ /$1 [R=301,L]
    RewriteRule ^reviews/(.+)/$ /$1 [R=301,L]
    # END REMOVE SLUG CUSTOM POST TYPE RULES

    Hopefully this will help anyone else who ran into the same problem. I'll just have to find another way to remove the slug...

  3. vikcheema
    Member
    Posted 3 years ago #

    Hi,

    I am using wp-property plugin on my website and also using another custom post type. After installing the wp-property plugin my permalinks for custom post type are not working now. It is getting redirected to 404 error page.

    If I deactivate the wp-property plugin it works fine.
    Please help. Thanks in advance.

  4. Michelle R. Wood
    Member
    Posted 2 years ago #

    Alan: Unfortunately there seems to be a problem with your fix (which seems to be the only fix for this problem) and the Types plugin. I can remove these lines, but whenever I click "Add New" for my new custom content type the lines come back.

    Also, contrariwise, clicking "Add New" under my custom content type shows an error message that prompts me to remove these lines.

  5. Michelle R. Wood
    Member
    Posted 2 years ago #

    Addendum: check out the discussion on this thread for more details on this problem.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Remove slug from custom post type
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic