Forum Moderators: phranque

Message Too Old, No Replies

Same PHP scripts for multiple domains question?

How to setup the domain names?

         

centjes

6:11 pm on Jul 19, 2005 (gmt 0)



Hi,

I've the following situation. I've written a web directory script in PHP. The content of the website depends on the domain entered, so it's different for all domains.

Now I have multiple domains and want use this same script for all my domains. What's the best way to do this?

I've webhosting that accepts unlimited add-on domains and parked domains. I've thought of using add-on domains and copy the scripts in each add-on domain folder. But when I need to modify my scripts I'll have to copy all those files to all those add-on domain folders again. Not too good.

Another way which I am now using is to use parked domains. I copied all the php files to my main domain and setup my other domains as parked domains. Now I just have one copy of my scripts.

My question is whether this setup will cause any problems in search engine rankings?

And if someone has a better idea to do this, I'would be more than happy to know :)

Thanks in advance!

[edited by: jatar_k at 6:25 pm (utc) on July 19, 2005]
[edit reason] no personal urls thanks [/edit]

2by4

6:32 pm on Jul 19, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I run networks of site all using the same programming, it's easy, you just set the include folder to one level above the site folder, then have all the site's include paths set to that one include folder, works great.

With a small detection you can also automate the domain parameter so you don't even need to change the script at all.