WordPress.org

Ready to get started?Download WordPress

Forums

How to enable two URLs? (8 posts)

  1. xaero7
    Member
    Posted 1 year ago #

    I'v got two ip address(no domain name):
    one is in the lan: http://192.168.0.123/wordpress
    the other is in the internet: http://60.151.244.2:8008/wordpress

    How to enable the two URLs?

  2. Pioneer Valley Web Design
    Member
    Posted 1 year ago #

    Not possible. Review DNS.

  3. xaero7
    Member
    Posted 1 year ago #

    No!
    It's truely possible! But the URL setting of wordpress make it work incorrectly.

    Another site of me can work properly with the two URLs.

  4. catacaustic
    Member
    Posted 1 year ago #

    WordPress can be accessed through two or more different URL's, but it will only build it's menus, permalinks, etc from a single URL. This means that if the site is set up as http://domain1.com and you try to access it from http://domain2.com every link on the site will show as http://domain1.com/page. That's jsut how it works.

    You say that you have another WordPress site that does this, so if that's really working, look at what that site is doing and copy it - and then tell the rest of us so that we can do it in the future!

  5. xaero7
    Member
    Posted 1 year ago #

    Sorry for my unclear expression...
    The other site of my is not built with WordPress
    There is no URL setting in the site. I think it's just URL setting makes the two URLs can't work.

    they are the screenshots of the site:
    http://www.flickr.com/photos/xybeta/8514727386/
    http://www.flickr.com/photos/xybeta/8513616295/

  6. catacaustic
    Member
    Posted 1 year ago #

    If the other site isn't built in WordPress the two systems can't really be compared like-to-like.

    You are sort of correct, becuase it is mainly the URL setting that makes it work with only one URL. But you can only have one URL set at any time, so that's where the restriction is. If you set up WordPress with two differnt URL's you can still access the pages through both URL's, but the links will only be to one isngle URL. You can't pick and choose which one you want to use. You have to hard-code one. wordpress has always bene set up like this, and even though changing the system to allow multiple URL's has been floated before, it's not technically feasable to do it with the codebase the way it currently stands.

    What is the actual reason that you need two different URL's/IP addresses for this one site anyway?

  7. ClaytonJames
    Member
    Posted 1 year ago #

    If I'm seeing things correctly, in your first screenshot, you appear to be accessing an address reserved for internal networks (probably on port 80).

    In your second screenshot, you appear to be accessing an external address on some unknown port - 8xx8?.

    - private/internal ip - port 80

    - external ip - port 8xx8?

    So... there's some things that night be helpful for you to factor into your search for information.

  8. xaero7
    Member
    Posted 1 year ago #

    yes
    - private/internal ip - port 80

    - external ip - port 8008

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.