• Resolved kylboy06

    (@kylboy06)


    I need to know how to use a wildcard for the WP address, so it will just take the site I am on, and go to /wordpress. So if I type http://www.domain.com and click on blog, it will go to http://www.domain.com/wordpress but if I go to 192.168.0.100 and click on blog, it will go to 192.168.0.100/wordpress. I have tried typing in /news for the WP address, and I have also tried ../news, and …/news, but none worked. I need the links to be relative.

Viewing 6 replies - 1 through 6 (of 6 total)
  • 192.168.0.100 is a reserved address. I’m assuming you know that.

    You cant have both ways.

    And I can say with nearly 100% certainty that you cant have what you want. The Blog address (URI) is intended to be set, and not a wildcard.

    Thread Starter kylboy06

    (@kylboy06)

    I know that 192.168.0.100 is reserved, I need it to do this, because I can’t go to the domain in the local network, because I have the server in my house, so the only way to get there is to type in the ip. I was just curious if there was anyway to change it from using a url and making it relative to what is typed in. Or if there is an add on to do this, or anything, because right now I can’t access my own blog from inside my house.

    I just need it to be like the rest of my site. If you click on a link for page2.html, it is actually linked as /page2.html, and not http://www.domain.com/page2.html. By doing this, I can type in 192.168.0.100 and click on the link and it will take me to 192.168.0.100/page2.html, or if I type in http://www.domain.com and click on the link, it will go to http://www.domain.com/page2.html If I do something like this for wordpress though, it wants to go to http://news or http://../news, etc

    Like I said, as far as I understand it cannot be done. Its been discussed before — localhost, reserved IPs, nat, etc..

    thought of editing your host file?

    Thread Starter kylboy06

    (@kylboy06)

    I know what you are talking about, but what exactly would I add to the host file, in order to get this to work?

    192.168.0.100 http://www.domain.com

    Thread Starter kylboy06

    (@kylboy06)

    Thank you so much, that did the trick, awesome, thanks again.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Wildcard for WP Address?’ is closed to new replies.