WordPress.org

Ready to get started?Download WordPress

Forums

non-www redirect problem (1 post)

  1. croakingtoad
    Member
    Posted 4 years ago #

    I have a weird redirect issue.

    I have my blog set to redirect any http://www.domain.com requests to domain.com. Simple right? Okay, I also have a page created with a slug of "pets" so the correct URI is http://domain.com/pets

    Now, if you visit the site using http://www.domain.com/pets you get redirected to http://domain.com/ and it drops the "pets" slug. Weird, but it gets even weirder.

    I also have a 301 redirect in my htaccess:

    Redirect 301 /dining /restaurants

    SO, if you visit http://www.domain.com/dining you actually get redirected CORRECTLY to http://domain.com/restaurants

    So I don't get why the first redirect isn't working. I don't have it explicitly declared in the htaccess file because the old URI and the new URI are the same, sans www.

    Thoughts, suggestions, advice?

Topic Closed

This topic has been closed to new replies.

About this Topic