| | |||||||
| Technology & Technical Skills Computer skills, hardware, software, internet topics, gadgets, programming |
| | Thread Tools | Display Modes |
| | #1 (permalink) |
| Member Join Date: Jun 2007 Location: Oslo, Norway
Posts: 51
|
Hi all, I will be able to write this customisation code myself, so don't spend to much time figuring this question out unless you have the answer off the top of your head. I have three domain names that I all want to point to the same site, reason being that people knowing my name should intuitively find the site from the adressbar. In wordpress options they ask you to set you blogdomain and as I just found out, when getting stylesheets and images, the php code is set up to pick up the siteurl from the sql database instead of using relative url's. Which in practice means that when using any of the two other domain aliases my site does not get a hold of the stylesheet and images. So my question is if anybody already wrote code to fix that so lazy me do not have to do it myself. Do any of you have any? I'm currently stuck out in a field working from a mobile line to the internet and going for the big google search is rolling dimes steadily and probably it will be quicker to write it than to search for it. Just trying this in case somebody already did it and can quickly refer me to the sourcecode Thanks in advance for your attention! |
| | |
| | #3 (permalink) |
| Member Join Date: Jun 2007 Location: Oslo, Norway
Posts: 51
|
Thank you for answering Jill. I could of course do that. The reason I have not done it so far is twofold: I have a home network and my own webserver at home, and in order to route the traffic when working from home I use one of the domains as my internal route through the hosts file, and another to test that what I have done works as well from the outside. Also it's about control - setting it in the config file on the Apache server keeps all my settings within the house. Those are probably not the best of arguments. In addition, I guess as a former developer I just got a bit annoyed when I found out how wordpress was set up - I find it very unelegant to use hardcoded urls from a setting in a database, and my instinct was that this has just got to go... It seems just as simple to me to get the bloginfo function to pick it up from $_SERVER as to get it from the sql db, if I can just locate the file that sets it, that is if the developers of wordpress have structured this well enought so that it is just one source for setting the parameter. So I guess I'll think it through some more before deciding what to do. |
| | |
| Bookmarks |
« Previous Thread
|
Next Thread »
| Thread Tools | |
| Display Modes | |
| |
| | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Wordpress and Adsense | Nahush | Business & Financial | 6 | 12-17-2007 08:19 AM |
| Domain Business Investment | inova | Business & Financial | 2 | 06-29-2007 10:05 PM |
All times are GMT. The time now is 07:04 AM.




