Forums

Domain Redirect: www./ redirects to , strips (4 posts)

  1. philthegr81
    Member
    Posted 1 year ago #

    I've inherited a site to maintain and it's exhibiting a strange behavior. If anyone tries to visit the site with www. in the beginning of the address, it redirects to the base domain, which normally isn't a problem. But, if someone goes to http://www.<domain>/<page>; it redirects directly to <domain>, stripping the indicated page off of the address.

    Actual examples:
    http://japanesegarden.com/ - The site
    http://www.japanesegarden.com/ - Redirects to http://japanesegarden.com/
    http://japanesegarden.com/events - An actual page on the site
    http://www.japanesegarden.com/events - Redirects to http://japanesegarden.com/ - NOT the events page

    I've tested this site with a basic .htaccess file that works on another site, but the redirect problem still occurs, so it doesn't appear to be an .htaccess issue. Would this be an issue with the way the domain itself has been set up?

    Thanks!

  2. Do you have any .htaccess code for redirection? That shouldn't be happening out of the box.

  3. philthegr81
    Member
    Posted 1 year ago #

    There is an .htaccess file that has quite a few rules for the WP SuperCache plugin, which was in place before I started working with the site. On a hunch, I replaced this .htaccess file with a basic .htaccess file generated by setting the Permalink structure setting, just to see if any of those rules would be doing this. This didn't fix the issue. This makes me skeptical that it's actually a WordPress or .htaccess issue, but I thought I'd ask to see if anyone had run into this behavior before.

  4. Yeah, I've not seen that before... But you may want to turn off WP Super Cache entirely for a fully valid test.

Topic Closed

This topic has been closed to new replies.

About this Topic