• Hi all,

    I just installed my new blog. I did nothing but site address and wordpress address(in General Settings). Once I changed them, I could use my own url to visit my blog’s front page, but I could not login to admin.
    if I change back ‘localhost/(folder)’ in database, I could login to admin.

    I’d like people can use my own url (e.g.www.abcxxx.com/example)to access my blog.

    Is there any setting I have to take care of? Please help…

    Thank you

Viewing 9 replies - 1 through 9 (of 9 total)
  • I’m going to assume a few things in general here…

    You installed WordPress on a home server and want to make it available to the WAN…

    A) If you have a domain name, your WordPress addresses must be //www.yourdomian.com – or – //www.yourdomian.com/sub_directory_name for this to happen.

    B) Your domain must point to your ip address. If it’s a dynamic ip address such as a residential/home internet account, you will need a dynamic ip service provider and update client to update your domains ip address whenever it changes.

    C) Your network router/firewall appliance must port forward internet traffic to the static internal ip assigned to your server.

    D) Once you assign an actual domain name to your WordpPess blog and it becomes available to the outside world, it will no longer be accessible from the machine it is installed on, or the “localhost” address, unless you add the domain to the servers host list to allow resolution to 127.0.0.1 (localhost) from the servers browser. It should however, be accessible to other clients on your network, assuming your domain name resolves to your present external ip address.

    Thread Starter fochance

    (@fochance)

    Thanks a million, ClaytonJames

    A. Yes, I got the domain eg. sample.yahoo.com.hk Do I have to put “//” before the domain?

    B. Yes, I have a static ip

    C. Yes, I have someone to assign the ip to my domain in DNS server, so people from outside can use the domain name to browse my blog.

    D. I have a question here. You say, “…unless you add the domain to the servers host list to allow resolution to 127.0.0.1 (localhost) from the servers browser”
    How to do it?
    Thank you

    Add two extra entries to the servers hosts file, each on separate lines.
    make sure to leave a space between the numeric value and the domain name.

    127.0.0.1 ww.yourdomain.com
    127.0.0.1 yourdomain.com

    That should allow you to use a browser on the server to view the site if you need to. And use “www” in the prefix. I left one out of the example to keep it from becoming a link.

    Do I have to put “//” before the domain?

    No. That’s just a habit I have to keep a url from being turned into a link when I post an address. ??

    But the addresses need to be complete, including the “http”

    General Settings – Example of URL’s

    Thread Starter fochance

    (@fochance)

    Thanks a lot, Clayton James
    but I’ve no idea what a host file is. I was wondering where I can get the host file. Thanks! Please help.

    Are you on a Windows OS, or A ‘Nix OS? What Operating System is your sever using?

    I believe on windows, the path to the file is usually as follows;

    (Drive) C:\Windows\System32\drivers\etc\hosts

    On ‘Nix systems, it should usually be located at;

    /etc/hosts

    And you should open with a plain text editor.

    Here is a quick web reference:

    What is hosts file and how to edit hosts file in Win XP and Win Vista?

    There is also a chart on that page for hosts file location reference on different OS’s.

    Thread Starter fochance

    (@fochance)

    You’re the man, ClaytonJames. I appreciate your help.

    I’ve already add the entries on the host file, but no luck. I still can’t login to admin (wordpress). When I type the domain name on a browser, I can visit my blog(wordpress). I forgot to mention that I’m using xampp + wordpress 3.0.1 + Win xp

    In a host file my entries are following:

    127.0.0.1 localhost
    127.0.0.1 https://www.fed.cuhk.edu.hk
    127.0.0.1 mydomainname.fed.cuhk.edu.hk

    Is there anything wrong or missed? Thank you so much…

    Thread Starter fochance

    (@fochance)

    oh…I didn’t type “http//” on the second entry.

    The second entry may have too much info in it.

    The first looks okay. The second looks a bit long. The entries should be exactly the same, only one with and one without the “www” prefix. If that doesn’t do it, I’m stumped. You can try a re-start after making the changes, but I’m not sure that will make any difference.

    [edit] also recheck in the database and make sure that your sites addresses both point to where wordpress is actually installed. If it’s still installed in a sub-directory, the addresses need to include it. Here are some methods for changing your blog addresses if that turns out to be the issue.

    Changing The Site URL

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘After I changed url, I can't login to admin’ is closed to new replies.