Support » Fixing WordPress » www subdomain redirecting to subdirectory

  • David M.

    (@david-m)


    I haven’t been able to find support exactly related to this problem. Apologies if it’s already there or something obvious.

    A new site I designed went live. The site is installed in example.com/wp. I followed the official WordPress instructions to have the site appear at example.com and it worked perfectly but the subdomain with www doesn’t work: http://www.example.com redirects to example.com/wp, with a page not found error.

    The solution would be having http://www.example.com redirecting to example.com. I tried adding this to .htaccess but it didn’t work:

    RewriteCond %{HTTP_HOST} ^www.example.com [NC]
    RewriteRule ^(.*)$ http://example.com/$1 [L,R=301]

    I’m at a total loss here, don’t know where to look. Any ideas, please? Thanks!

    • This topic was modified 5 months ago by  David M..
    • This topic was modified 5 months ago by  David M..
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.