Wordpress redirects to subdomain

Posted on 2012-08-21
Last Modified: 2012-09-09

When I installed Wordpress the site domain was not yet pointing at the hosting space so in General Settings I set the Wordpress URL and Site Address URL to the preview URL provided by the host which is in the format (where is the domain for the site).  That all worked fine.

Now that the domain IS pointing at the Wordpress site, browsing to displays the site fine but the browser address bar shows that a redirect is occurring to  

How do I stop Wordpress performing this redirect?  If I change the WordPress Address (URL) in Settings > General from to then I can no longer login to admin and I have to change the value back in the database.

I've read but I'm not sure what parts are relevant since I'm not actually needing to move the location of any files.

Help appreciated!
Question by:Danzigger
    1 Comment
    LVL 10

    Accepted Solution


    did you change both?

    The "Home" setting is the address you want people to type in their browser to reach your WordPress blog.
    The "Site URL" setting is the address where your WordPress core files reside.

    Note: Both settings should include the http:// part and should not have a slash "/" at the end.

    You can also try other methods, listed here -

    Featured Post

    Threat Intelligence Starter Resources

    Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

    Join & Write a Comment

    Suggested Solutions

    Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
    I annotated my article on ransomware somewhat extensively, but I keep adding new references and wanted to put a link to the reference library.  Despite all the reference tools I have on hand, it was not easy to find a way to do this easily. I finall…
    The purpose of this video is to demonstrate how to reset a WordPress password if you are locked out and cannot reset the password. A typical use would be if you cannot access the email to which WordPress would send the password recovery email to…
    The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now