Forums

[resolved] using on localhost and from the web? (11 posts)

  1. Moment
    Member
    Posted 2 years ago #

    Ok so I have narrowed my problem down to one simple thing. From the settings menu under general I can set url to be from the local host or from the external domain name. When set to local, I can see blog fine, but for people on the web the source clearly show the files links to the local host, thus they cant see any formating or images.

    On the other hand when I set the url to the domain name, people on the web see everything fine. The source shows the links as http://example.example.exp/blog and all is well. But now when set like this I cant locally see these parts as its set to domain.

    Basically a loop back error. But how do I fix this so the blog is accessable both localally and externally?

  2. Jeremy Clark
    Moderator
    Posted 2 years ago #

    You'll have to edit your hosts file. To do this open notepad then naviagate to C:\WINDOWS\system32\drivers\etc\hosts open that file then you add your domain name and ip address.

  3. Moment
    Member
    Posted 2 years ago #

    ip address of the local host? ok if i was to do that, after i changed it which way would i set up word press in the general settings? with the local host name or the domain name?

  4. Moment
    Member
    Posted 2 years ago #

    better way to word this...

    1.should i put the ip of the local computer or the wan ip
    2. for domain should i put localhost or the computer name or the domain
    3. once that is done should i put wordpress url as local or external domain name

  5. esmi
    Theme Diva & Forum Moderator
    Posted 2 years ago #

    The domain name but see http://codex.wordpress.org/Changing_The_Site_URL first.

  6. Moment
    Member
    Posted 2 years ago #

    i think i still left important parts of info out. in hosts file should it be local ip or external (which is dynamic, so i cant see this working) and in the hosts file shoud it be computer name or internet host?

    I think i understood you esmi to mean that domain should after host file is fixed go in the setting for wordpress url.

  7. esmi
    Theme Diva & Forum Moderator
    Posted 2 years ago #

    domain should after host file is fixed go in the setting for wordpress url.

    Yes

  8. Jeremy Clark
    Moderator
    Posted 2 years ago #

    The host file should have the static internal IP of the computer where the blog is hosted and the Domain that you set for the wordpress url.

  9. Moment
    Member
    Posted 2 years ago #

    ok... progress is made. i now have it looking proper on the external ip. others can see it fine. also i can see it fine on the machine its running on. i still cant see it properly from other computer in lan. is there a way to fix this or can i only see it from localhost and wan? thank you for help so far

  10. Jeremy Clark
    Moderator
    Posted 2 years ago #

    You have to do the same thing on the other computer. Just use the internal ip of the web server in the host file.

  11. Moment
    Member
    Posted 2 years ago #

    Thank you guys so much, both of those tips worked perfectly. I had just discovered word press a few days ago and though it looked like very powerful tool for my website. I had almost giving up getting it to work right though. Thank you.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.