• ollybowman

    (@ollybowman)


    I’ve got this site setup as a multisite with the main domain being https://www.scottish-orienteering.org.

    If I enter a page without the www at the start it always 302 redirects to the homepage with a www rather than the current page. For example scottish-orienteering.org/example will direct to https://www.scottish-orienteering.org with a 302 redirect. This happens on everypage, and I want it to redirect to the same page bit with the www.

    I’ve tried disabling all plugins, changing the theme and also removing the .htaccess file but it still does this.

    Is there somewhere else I should be looking, it’s driving me mad.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter ollybowman

    (@ollybowman)

    Thanks, but that’s not the problem at all.

    All pages have a 302 redirect to the main site homepage when redirecting from non www pages to www. pages. I’m trying to get the site to redirect to the same page.

    bozoemo

    (@bozoemo)

    same issue.
    Main site = mainsite.com
    Sub Site = https://www.subsite.com (with www)

    if I enter subsite.com, it will redirect to mainsite.com
    if I enter https://www.subsite.com, everything works good.

    The only solution given by by host provider was to modify the root htaccess with those lines of codes:
    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^SUBSITE.com [NC]
    RewriteRule ^(.*)$ https://www.SUBSITE.com/$1 [L,R=301,NC]
    RewriteCond %{HTTP:X-Forwarded-Proto} !https
    RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]

    But would love to have an explanation on why this is doing it.
    Anyone else with the same issue?

    I want to do 301 redirect all pages of this website https://softwatering.com . How can I do that? Any wordpress plugin?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘All pages have 302 redirect’ is closed to new replies.