Personal Development for Smart People Forums

Personal Development for Smart PeopleTM Forums

 

Go Back   Personal Development for Smart People Forums > Personal Development > Technology & Technical Skills

Notices

Technology & Technical Skills Computer skills, hardware, software, internet topics, gadgets, programming

Reply
 
Thread Tools Display Modes
Old 07-01-2007, 09:11 AM   #1 (permalink)
Member
 
Join Date: Jun 2007
Location: Oslo, Norway
Posts: 51
unicorn is on a distinguished road
Default Anybody customised Wordpress to handle domain aliases?

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!
unicorn is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07-01-2007, 11:45 PM   #2 (permalink)
Senior Member
 
Join Date: Nov 2006
Location: Ashland, MA
Posts: 481
Jill is on a distinguished road
Default

Why don't you simply park the alternate domains at the same dns and do it that way?
Jill is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07-02-2007, 06:36 AM   #3 (permalink)
Member
 
Join Date: Jun 2007
Location: Oslo, Norway
Posts: 51
unicorn is on a distinguished road
Default

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.
unicorn is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
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.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Copyright © 2010 by Pavlina LLC