• wkdnaps

    (@wkdnaps)


    Does anyone know why the website keeps sending me a 301 redirect to the following rule that was added through one of my plugins.

    [“a/(.+?)/?$”]=> “index.php?gNameSearch=$matches[1]”

    The rule is been added to : $wp_rewrite and when you visit the website
    https://domain.ltd/a/nameofpage

    WordPress Redirects the user to the link below and send a (301) along in the header.
    https://domain.ltd/a/nameofpage/

    Seems as though WP is demanding the “/” trailing slash always be there. Remember this is my own rule I have defined. Any suggestions would be greatly appreciated.

  • The topic ‘301 on header for custom permalinks’ is closed to new replies.