Welcome to WebmasterWorld Guest from

Forum Moderators: phranque

Message Too Old, No Replies

PHP and ASP driven site needs hosting help

Splitting a 'site of two technologies' across hosts?

10:18 am on Apr 7, 2012 (gmt 0)

Junior Member

10+ Year Member

joined:Jan 15, 2003
posts: 47
votes: 0

I've been stuggling with this one for ages, but I really need to get started on it.

My personal site is currently hosted on a shared/hosted windows server and has two 'halves': the 'Information' half and the 'Forums' half.

I've successfully converted the 'Information' half to PHP and the 'forums' half is ASP-driven (running a heavily customized Snitz forums install)

I want to move the site to alternative hosting, BUT, if I lose any of the URL structure of the 'Forums' half (e.g. by using another forum package, or changing it to a subdomain etc.) the site will probably be boned in terms of SEO), as the forums are the major traffic draw and about 90% reason for the success of the site.

I guess I'm looking for ideas on how to split the site so that the 'information' half is hosted on one package and the /forums/ part remains on the old windows server? Is that even possible?
11:12 pm on Apr 7, 2012 (gmt 0)


WebmasterWorld Administrator phranque is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Aug 10, 2004
votes: 126

you might be ok if you move the url structure to the root directory of a subdomain and then it would be a simple matter to host the forum subdomain separately from the main hostname.

otherwise you could use mod_proxy or similar to send all requests for http://www.example.com/forum/ to the ASP server.

or use mod_aspdotnet:
http://mod-aspdotnet.sourceforge.net/ [mod-aspdotnet.sourceforge.net]
or mod_mono:
http://www.mono-project.com/Mod_mono [mono-project.com]
9:32 am on Apr 8, 2012 (gmt 0)

Junior Member

10+ Year Member

joined:Jan 15, 2003
posts: 47
votes: 0

Thanks phranque. A similar theory came up before, but it's good to see it surface again.

Should I be concerned from a SEO/SERPS point of view, when changing my forums URL structure from example.com/forums/... to forums.example.com...
My feeling is that the forums will disappear from the SERPS in this case.
2:26 pm on Apr 9, 2012 (gmt 0)

Junior Member

10+ Year Member

joined:Jan 15, 2003
posts: 47
votes: 0

OK, I just got done with the changes. It's not 100% perfect, but close.

My procedure:

1. I copied and pasted the main site (PHP) code to the new host.
2. Tested and configured it to work in the new environment (a few code tweaks)
3. Moved the forums on the existing host (Windows/ASP) from mydomain.com/forums/ to forum.mydomain.com and re-configured.
4. Updated the nameservers on the domain to point to the new host.
5. Configured an A-record for 'forum.mydomain.com' to point back to the IP address of the existing host.
6. Finally, I configured the .htaccess on the new host to take any requests for scripts in the old mydomain.com/forums/[...] and redirect them to forum.mydomain.com/[...]

I learned a lot about DNS and I'm sure I annoyed the new host a bit with my Q's, but we got there in the end. :D

Only problem left is that some of the PHP on the main site connects to the MSSQL running the forums to get some data but now can't because the new hosts doesn't allow this.

I'm looking into cURL (maybe) to get this data in another way.
9:32 am on Apr 10, 2012 (gmt 0)

Junior Member

10+ Year Member

joined:Jan 15, 2003
posts: 47
votes: 0

PHP Curl was the answer to the remaining piece of the puzzle. :) (plus a bit of ASP)
2:52 pm on Aug 13, 2012 (gmt 0)

New User

5+ Year Member

joined:Aug 10, 2012
posts: 1
votes: 0

There are many companies which provide you with free trails u can search the net for then and once sure u can go for it
there was one web service provide which i was great and started the trail concept in Asia
[vpshosting.com.hk ]