Hi everyone. My first post - hope it all goes well..
My background is as a designer, not a programmer - so I'm not particuarly strong with php or mysql - though I can get by with the basics. I'm learning, anyway.
I've recently installed a small web-server on my lan (running ClarkConnect/linux in standalone mode), just to get to know linux/apache a bit better.
The problem I'm having is that though wordpress (2.0.1) works fantasically on the lan, it does not work so great externally. It knows that it's address on the LAN is 10.0.0.1, but when other people view it, (the source), the links still point to 10.0.0.1 - So, for example, all the php/html in the page loads correctly, but the stylesheet (or any images), which are all linked, do not.
For example, the link to the stylesheet that I see in the source code from the browser is : http://10.0.0.1/wordpress/wp-content/themes/benevolence/style.css
Now, if I brose the wp directory, and open the relevant .php file, I can find the same link before it is rendered in PHP - it looks like this :
<?php bloginfo('stylesheet_url'); ?>
I would normally assume that this is the fault of php (or apache), which somehow thinks that the machine's address is still 10.0.0.1? HOWEVER, two things make me think otherwise - the call to the above function (bloginfo), and, because I see that in my wordpress general options page the following is entered (automatically, I think - I don't remember) :
Wordpress address (URI) : http://10.0.0.1/wordpress
Obviously, this is a silly problem and shouldn't be happening, at all!
I cannot find the function bloginfo anywhere. I understand that I can replace the "Wordpress address (URI)" with my external IP (thankfully, static) but then I won't be able to access it locally, correct?
I'm extremely hopeful that this can be sorted out, cause wordpress seems like an amazing piece of software. That's why I know something like this will be easily solved. I can't find any reference to this problem anywhere, either.
Thanks all very much for reading this, and for your time.
Please let me know if I can supply any other information.
- Jeremy