Support » Fixing WordPress » Changed site URL, now can't login??

  • Resolved BCeen


    I have just had my hosting company change the url of my site from to

    These both point to the same directory.

    Unfortunately now site is not working correctly, the site simply displays the plain text without the them or styling.

    Also I am unable to login to the dashboard.
    I have tried the existing login This just redirects to the home page gives me the login boxes but after that just diverts to the homepage aswell.

    I can access all the files via ftp as these have not changed location.

    I’ve been told it’s simply a question of redirecting the files urls’s??

    Any help is hugely appreciated


Viewing 15 replies - 1 through 15 (of 19 total)
  • Since you changed the url and if you want it that way then you will have to move your contents of your wordpress folder in root for it work.

    Thanks, but the hosting company set it up so both these URL’s point to the same root folder. This is not located at

    Where are your wordpress folders and files you can post your url here we can see to guide you.

    I have just had my hosting company change the url of my site from to

    When you move WordPress, you have to do a couple things.

    1) Change the Blog and Site URLs
    2) Move the files

    Have you read

    try and switching to default twenty ten theme and see if you still have problem to rule theme problem.

    Re ipstenu:
    Thanks I’ve read the help page but it dosen’t seem to answer my problems.
    1). I can’t access the dashboard how else can i do this?
    2). Both these url’s point to the same root folder, they’re pulling in the content just not the theme.

    Re govpatel:
    Thanks, any idea how I could do this when it will not allow me to access the dashboard?

    Change the url back
    (and read the rest of that article too).

    Then follow Ipstenu’s link to move WP correctly.

    I am just unclear on exactly where your wordpress files and folders are they in root that is (public_html if you using cpanel)
    or are they in folder

    and what are urls that are in Settings General
    Since you can not log in admin that tells me that your urls are not set right and if they are

    you can switch to default theme by logging in ftp and rename the theme you using and go to your website that force wordpress to open default twenty ten theme to open.

    Fixed it. Thanks for all your help.

    I pasted the following into the wp-config.php


    Since you put in wp-config.php you will not be change that in Settings General any more will grayed out

    Interesting reading the above problem and solution. It worked for me too. Basically, I set up my site without the www and wanted to change it so that it had the www before the url. When I did that, i was unable to log back in because the admin url kept redirecting to the new www which wouldn’t allow access. I resolved the issue by adding the below code to the wp-config.php page:

    So, now as govpatel has rightly indicated, I am now unable to adjust the url in the dashboard settings (it is greyed out).

    Does anyone know the correct process for changing the URL (making it http://www.yoursite when it was set up as simply http://yoursite

    Thanks in advance

    Adding the 2 lines worked like a charm! Thank you so much Bceen!

    Take them two lines out of wp-config.php if do not want them grayed out

    Does anyone know the correct process for changing the URL (making it http://www.yoursite when it was set up as simply http://yoursite

    I think mod_rewrite converts http://www.yoursite to http://yoursite

    My videos will show you how to.

    I took the code out and could not access the admin page again. I read that you need to place it in your function.php file and that gave me access to the admin page. I then deleted those 2 lines as suggested. But now I am still having trouble accessing other pages. What I originally did is changed the name of the url to “” I do not use “www”. Now certain pages are looking for the server at (” instead of ( I am only having trouble with some of the pages that are listed within the WP eCommerce plugin. I am using WordPress HTTPS plugin which enables me to force pages I have created to https, but the product pages and my “shop” pages that are automatically created by WP eCommerce are the ones that are still trying to locate the “”.

    Any help is appreciated.

Viewing 15 replies - 1 through 15 (of 19 total)
  • The topic ‘Changed site URL, now can't login??’ is closed to new replies.