WordPress.org

Ready to get started?Download WordPress

Forums

Redirection
redirection problem /a to /a/b not redirecting properly (2 posts)

  1. shanahan3001
    Member
    Posted 2 years ago #

    I'm trying to redirect from example.com/news/ to example.com/categories/news/ and I'd like to make the last / optional.

    Here's what I've entered in Redirection:

    Source URL:
    /news/?$

    Destination URL:
    /category/news/

    I was expecting if I enter example.com/news/ or example.com/news it would redirect to example.com/category/news/. But it only works for example.com/news/.

    If I enter example.com/news on Firefox, I get an error:

    The page isn't redirecting properly
    Firefox has detected that the server is redirecting the request for this address in a way that will never complete.

    And if I enter example.com/category/news on Firefox I get:
    category/category/category/category/category/category/category/category/category/category/category/category/category/category/category/category/category/category/category/category/news/

    I've tried entering the source URL as:
    ^/news/?$

    but Revisions modifies it to
    /^/news/?$

    Any suggestions?

    (I've also tried entering the source URL as /news/ and /news but I get the same behavior in all cases)

    Thanks,
    Dan

    http://wordpress.org/extend/plugins/redirection/

  2. pronoiac
    Member
    Posted 2 years ago #

    It should be ^/news/?$ and if it adds in initial /, remove it and re-save it.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic