• Resolved Jeffrey Powers

    (@animalien)


    Here is the problem. I have set up my wordpress so when someone wants to go to my “About” page, they only have to type in: geekazine.com/about

    The problem is if they don’t put in the www in the address – https://www.geekazine.com/about it will not go to that page. Instead, when you type in “geekazine.com/about” it comes to a page that says:

    You are currently allowing “none” registrations. To change or disable registration go to your Options page.

    How can I make it so people don’t need the “www”? All other subdomain websites work in Multisite.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    When you set up Multisite, it actually warned you NOT to leave WWW in there. This is (part of) why.

    Put this in the very top of your .htaccess:

    # Force the "www."
    RewriteCond %{HTTP_HOST} !^www\.geekazine\.com$ [NC]
    RewriteRule ^(.*)$ https://www.geekazine.com/$1 [R=301,L]
    Thread Starter Jeffrey Powers

    (@animalien)

    Thanks but that did not work. It rerouted all my subdomain sites. (dorkazine.com [dork.geekazine.com] went back to geekazine.com when I put that code in)

    I don’t remember it asking me about the www part. Then again I did try to do Multisite with this system a few years ago.

    Should I remove it from MySQL or something?

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Then do this:

    RewriteCond %{HTTP_HOST} ^geekazine\.com$ [NC]
    RewriteRule ^(.*)$ https://www.geekazine.com/$1 [R=301,L]
    Thread Starter Jeffrey Powers

    (@animalien)

    That did the job!! Thanks!

    Thread Starter Jeffrey Powers

    (@animalien)

    Closed.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Multisite – when no www subdomain, redirect problems’ is closed to new replies.