Monday, June 8, 2009

Is it possible to use same domain name for two servers with some setup?


We are having our main site at qualitypointtech.com and quiz at qualityponinttech.0fees.net/quiz .

I thought it will be good to access quiz at qualitypointtech.com/quiz without putting the quiz at main site.(qualitypointtech.com).

Because we can't put the quiz folder at our main site as it won't support php.

I don't know whether it is possible or not. So, asked this question in reddit.com

I got below suggestion as answer from panamaspace



As I understand it, your main domain is on a server where you have no PHP, and you need to show something done in PHP. Two quick and nasty solutions come to mind.

1.An iframe, cheap and easy, but frowned upon. This is one of those few cases where I'd actually consider it... but I don't know the security implications for what you are trying to do. (Sessions, direct access, etc.). Some .htaccess magic could make sure that the page is only opened when linked to from the main domain.
2. A subdomain that points to the PHP-enabled server. Probably more elegant but a little more work, and I don't know if you actually have DNS control of the main domain.

What I would actually do:

1. Just install php on the main server, it's not that hard. Or move the whole thing to a server with PHP.

Edit: p.s. You know that a form action does not necessarily have to be hosted on the server that has the form, right? You can point the form to be processed elsewhere. If I had more specific information, I might be able to help out.



More Articles...

No comments:

Search This Blog