beerguts Posted November 12, 2009 Share Posted November 12, 2009 Hi Everyone, I have just restarted a website that has been offline for a few months (I didn't design it originally). We have relaunched it under a different domain name. When it was up last time it not only had the main domain ( http://www.mysite.net ) but also had an additional url ( http://somename.mysite.net ). I assume the second one was a subdomain and now it does not display (just blank). The question is, where in my code would I find the path to this site and secondly do I need to create a new subdomain? Any help appreciated. Quote Link to comment https://forums.phpfreaks.com/topic/181279-half-the-site-not-working/ Share on other sites More sharing options...
darkvengance Posted November 12, 2009 Share Posted November 12, 2009 I doubt anyone here can answer your questions, since we cannot see the code we cannot tell you where to find the domain within your code. You may want to post the entire source code of the website up here to get some help. Quote Link to comment https://forums.phpfreaks.com/topic/181279-half-the-site-not-working/#findComment-956328 Share on other sites More sharing options...
mikesta707 Posted November 12, 2009 Share Posted November 12, 2009 you have to set the subdomain up if it hasn't been setup already edit: please don't post the entire source, post the relevant PHP (IE the stuff that includes or goes to the subdomain) Submitting your entire source (CSS, Javascript, HTML et al) is a sure fire way to not get answered also (though its a bit better than not posting any code at all) Quote Link to comment https://forums.phpfreaks.com/topic/181279-half-the-site-not-working/#findComment-956330 Share on other sites More sharing options...
beerguts Posted November 12, 2009 Author Share Posted November 12, 2009 No problem. So essentially if I create the subdomain exactly the same as previously (except with the new domain name included). From there find the path to which it refers and amend that to the new subdomain name, that should be all that is required? Thanks for your help and your patience! Quote Link to comment https://forums.phpfreaks.com/topic/181279-half-the-site-not-working/#findComment-956340 Share on other sites More sharing options...
mikesta707 Posted November 12, 2009 Share Posted November 12, 2009 Maybe, maybe not, depends on how the script was constructed (if it used absolute vs. relative paths, stuff like that) Quote Link to comment https://forums.phpfreaks.com/topic/181279-half-the-site-not-working/#findComment-956345 Share on other sites More sharing options...
beerguts Posted November 12, 2009 Author Share Posted November 12, 2009 Okay. I've created the subdomain but obviously haven't got the path correct as it still isn't showing. The path in the code is declared in variable ( $path ) and it's relative. The main folder is httpdocs and the subdomain folder titled "pilots" is held in there. I tried using the relative path /httpdocs/pilots but doesn't seem to work Quote Link to comment https://forums.phpfreaks.com/topic/181279-half-the-site-not-working/#findComment-956354 Share on other sites More sharing options...
beerguts Posted November 12, 2009 Author Share Posted November 12, 2009 Good news! It now recognises the subdomain but says there is no site content!?/ Quote Link to comment https://forums.phpfreaks.com/topic/181279-half-the-site-not-working/#findComment-956363 Share on other sites More sharing options...
darkvengance Posted November 12, 2009 Share Posted November 12, 2009 again...we really don't know what you are talking about as we cannot see the source....we would be able to help you a lot better if you posted at least some of the source code. Quote Link to comment https://forums.phpfreaks.com/topic/181279-half-the-site-not-working/#findComment-956410 Share on other sites More sharing options...
Cultureshock Posted November 13, 2009 Share Posted November 13, 2009 If it uses mysql then the content wouldn't carry over. Quote Link to comment https://forums.phpfreaks.com/topic/181279-half-the-site-not-working/#findComment-956557 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.