Permalink is getting 301 redirect to a version without slash

  • Unknown's avatar

    I have recently migrated my blog to WP, and to match with the current url i have selected the permalink to /%postname%/?id=%post_id%.
    The links in side bar(latest posts) and the canonical url are perfect, both are showing /%postname%/?id=%post_id% ( example.com/post_name_test/?id=123)

    But the url appears as missing the “/” before the querystring”?” as below /%postname%?id=%post_id% ( example.com/post_name_test?id=123)

    The site works good, but the proble the SEO reports shows there is 301 redirection to the canonical url.

    if I remove the “/” in the ppermalink like %postname%/?id=%post_id%, the site fails, a pagenot found error is throwing.

    can sombody help me with this by advising what to do?

  • Hi there,

    Can you please let me know your site’s address so I can point you in the right direction of getting support?

    Please note that these forums are for WordPress.com hosted sites only. If your site is using the open-source WordPress.org software you need to seek help at these forums:

    https://wordpress.org/support/forums/

  • The topic ‘Permalink is getting 301 redirect to a version without slash’ is closed to new replies.