Support » Plugin: Permalink Manager Lite » ?q= in URL

  • Resolved asterix30

    (@asterix30)


    Hi.

    I was testing your plugin and I have some questions:

    1. After using Regenerate/Reset tool in the Lite version to remove parent slugs from URI and shorten them, if I hit an internal link, which has not been modified yet, i.e. contains an old URL, I see ?q= string in the URL, new URI followed by an old one, e.g.:
    …-unit-circle/?q=trigonometry%2Fbasic-concepts-of-trigonometry%2Fchapter… The destination page is the right one though.
    Is this a correct behavior or some of my other plugins could be involved?
    Before using that tool I had disabled wp-rocket and RankMath, just in case.

    2. In order to change permalinks for the pages and flatten them I used %postname_flat% Permastructures settings for pages. That set correct URIs, but could add ?q= string to the URL from #1?

    3. How exactly does your Permalink Manager Pro support RankMath?

    Thank you in advance.

    Alex

    • This topic was modified 2 years, 8 months ago by asterix30.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Maciej Bis

    (@mbis)

    Hi Alex,

    1. & 2. I am not certain about it, but Permalink Manager does not include any code that would be able to append query parameters to the URL (such as ?q=). I guess that there is other 3rd party plugin involved here. To find out which one, you will need to check what functions are linked to ‘post_type_link’, ‘post_link’ and ‘page_link’ filters.

    3. As regards RankMath, Permalink Manager rewrites all the permalink occurrences in the front-end (it includes, canonical URL in meta tags and sitemaps). The only issue here is that RankMath ignores the custom permalink in the metabox where you can adjust SEO settings for each individual post/term. In other words, RankMath in “Permalink” field displays not the custom permalink set with my plugin but the original slug.

    Best regards,
    Maciej

    Thread Starter asterix30

    (@asterix30)

    @mbis you were right. it was my plesk+nginx config fault. corrected it and now is all fine.
    what about %postname_flat% for pages? is it acctually correct? I did not find this in the documentation, but rather assumed and copied into the page field.

    Thanks

    Plugin Author Maciej Bis

    (@mbis)

    Hi @asterix30,

    Both %postname_flat% and %postname% tags will work for all post types permastructures. There is a slight difference between them, you can find more information in the below article:
    https://permalinkmanager.pro/docs/tutorials/how-to-make-hierarchical-post-types-taxonomies-permalinks-flat/

    Best regards,
    Maciej

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘?q= in URL’ is closed to new replies.