This might be a topic that's been brought up before but the closest I could find to the topic that I was concerned with was here.
The problem:
You've got a web server at home and want to host your own blog, fairly easy to set up, in fact I think there's even packages available with Apache/MySQL/PHP/WordPress all together.
Anyway, you get asked during set up for your WordPress address and your Site address, the problem being if you're hosting your own server and you enter the OUTSIDE address here (http://www.example.com/) every time you try to access/post/admin on the inside (http://localhost/) you're going to run into a world of trouble.
On the other hand if you set it to an INSIDE address (http://localhost/) the outside world is gonna be met with a wall of text (if that) and no themes/headers/pretty colours, yet you'll be able to post/update/admin etc.
If you try to enter a non http: address into either of these options, say just entering the directory (/blog) you get an error from WordPress; "Invalid address". Might wanna check that one out fellas, for this very problem, unless I've missed something.
In conclusion: Hosting your own WordPress blog on a machine at home might seem just a tad frustrating (it was for me). The outside world can't see your blog properly if you set an internal address. You can't do anything locally if you set an external address. You can't set a non-http address.
The solution:
If you've set up your own web server you're probably familiar with tooling around in phpMyAdmin. If you're not, find out how, plenty of tutorials available. Begin by navigating to your phpMyAdmin address (http://localhost/phpmyadmin).
- Choose your blog db (you also set this during the setup of WP, could be "wp", "wordpress", "blog" etc) from the left-hand menu.
- In the "Structure" tab on the right click the Browse icon for "wp_options".
- Sort key by: option_name (Ascending)
- Look for "home" and click the Edit icon
- Change the value to a /directory (/blog, /wordpress, /wp)
NOTE: This solution hasn't been tested where wordpress is the site index, but it might be as simple as using the value "../"
- Click "Go".
- Look for "siteurl" (usually on the next page, and repeat the above steps.
Voila. You're done. Your blog will be accessible from both inside and outside.
If there was a better/easier way of doing this that I've missed, then by all means use that way -- This is just the way I found to do it.
- Evyl