WordPress.org

Ready to get started?Download WordPress

Forums

301 on header for custom permalinks (1 post)

  1. wkdnaps
    Member
    Posted 3 years ago #

    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
    http://domain.ltd/a/nameofpage

    WordPress Redirects the user to the link below and send a (301) along in the header.
    http://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.

Topic Closed

This topic has been closed to new replies.

About this Topic