• Hello all,

    I have just launched a new WordPress website for a client and now that the site is live the former 301 redirect in the htaccess is no longer working. When visiting the non-www URL I get this message:

    Moved Permanently

    The document has moved here.

    Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.

    The problem is that the link provided (“here” in bold above) links to the non-www URL still. In the wordpress settings panel both the WordPress address and Site address have the www.

    The htaccess was setup almost two years ago for their HTML website so the document does not contain the #BEGIN WordPress or #END WordPress code I have been seeing as I search the forums. Could that be the only issue?

    The site in question is mlschmittelectric.com, adding the www works but I need both to work. Thank you for your time, I appreciate any and all feedback!

Viewing 1 replies (of 1 total)
  • Here are two example lines from some Redirect code cPanel recently wrote for me:

    RewriteCond %{HTTP_HOST} ^mysite\.com$ [OR]
    RewriteCond %{HTTP_HOST} ^www\.mysite\.com$
    RewriteRule ...

    As far as I know, that covers the presence or absence of www.

Viewing 1 replies (of 1 total)
  • The topic ‘htaccess 301 redirect not working properly’ is closed to new replies.