Forums

Can't log in since rewriting domain address in htaccess (2 posts)

  1. mikem42
    Member
    Posted 2 years ago #

    Hi, our site's always been http://domain.com, but we've changed it via a htaccess rewrite to force it to http://www.domain.com whatever people enter. Problem is, I can't get into WP-admin with this rewrite as the login page is http://domain.com/wp-login.php (it rewrites to include the www then doesn't recognise me)!

    Is this simply a case of changing the site's URL in wp-admin (I can get in of course if I change the htaccess back) to the new www. address in Settings/General, where it's currently without the www? Will that mess anything else up?

    Thanks!

  2. Mark / t31os
    Moderator
    Posted 2 years ago #

    No it should be fine, change the URL under the settings to include the www..

    Can't harm to do a backup beforehand though.

Topic Closed

This topic has been closed to new replies.

About this Topic