954,587 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

PHP include on multiple URLs or domain mapping to sub paths possible?

Hi there,

I have a few sites plus a few clients' sites I have designed and manage. At present, when I want to add a new feature to all of the sites, I code it into each site individually.

What I want to achieve is to be able to update one file on one 'main' URL, and my other websites at different URLs get automatically updates as well.

At the moment I am using reseller web hosting, which shares my sites across several servers, but if I upgraded my web hosting to a dedicated server so all my websites are on just the one same server, is there a way to use a server sided technique such as PHP Include to update the other sites?

This would be the perfect solution as I am familiar with PHP and use the PHP Include everyday! If I could set up a PHP Include from another URL, it would be fantastic and make maintaining my websites a million times easier and quicker!

OR

If I built and hosted all of my sites on just one URL at sub paths e.g. maindomain.com/otherwebsite could I set up domain mapping so that another URL could be mapped to a sub path? Also, would that affect the search engine rankings as it's mapped?

Many many many thanks in advance!

Ben

bjc999
Newbie Poster
17 posts since Jan 2010
Reputation Points: 10
Solved Threads: 0
 

Any help with this would be fantastic and massively appreciated.

Thank you and best wishes.

bjc999
Newbie Poster
17 posts since Jan 2010
Reputation Points: 10
Solved Threads: 0
 

The link below is for an approach that is used for Wordpress but could be adapted for another system.

http://www.mywebsight.ws/2006/08/11/host-multiple-wp-sites-on-one-installation/

chrishea
Nearly a Posting Virtuoso
1,428 posts since Sep 2008
Reputation Points: 210
Solved Threads: 230
 

Thank you chrishea, I will take a look.

bjc999
Newbie Poster
17 posts since Jan 2010
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: