Jump to content

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

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.

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.