Jump to content

Half the site not working


beerguts

Recommended Posts

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.

Link to comment
https://forums.phpfreaks.com/topic/181279-half-the-site-not-working/
Share on other sites

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)

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!

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.