Jump to content


Photo

Subdomain does not work


  • Please log in to reply
8 replies to this topic

#1 mostafatalebi

mostafatalebi

    Advanced Member

  • Members
  • PipPipPip
  • 197 posts

Posted 06 May 2013 - 09:58 AM

Hello

I have setup a subdomain on my main domain as follows:

 

test.mydomain.com

 

folder: public_html/test

 

I have also tried to create a folder at top level of site, but neither worrkes and the page is redirect to the defaultpage.cgi . what should I do?


Visual Effects Programming

Autodesk Maya, Autodesk Mudbox, Nvidia Mental Images Mental Ray, Adobe Photoshop, Adobe Illustrator, Adobe After Effects, CorelDraw

#2 Q695

Q695

    Advanced Member

  • Members
  • PipPipPip
  • 656 posts
  • LocationMN

Posted 06 May 2013 - 12:47 PM

is the folder even there?

 

go to localhost if it is on your computer.


if ($problem==mark_solved){

solution ($problem);}

 

if ($skill_level==learning && $my_knowledge==the_required_level_of_knowledge){

     echo "I will try to help, because you're still $skill_level , and my skill level is at $my_knowledge";

} else {

     echo "I can't help you, go away.";

}


#3 mostafatalebi

mostafatalebi

    Advanced Member

  • Members
  • PipPipPip
  • 197 posts

Posted 06 May 2013 - 02:04 PM

yes the folder is there. All the materials (wp) are there. But it does not work. I have set it to test.site.com and have made the folder also at the proper place (top of the tree, above public_html), but nothing happend. I have also set it as site.com/test/ but again it miss to work.


Visual Effects Programming

Autodesk Maya, Autodesk Mudbox, Nvidia Mental Images Mental Ray, Adobe Photoshop, Adobe Illustrator, Adobe After Effects, CorelDraw

#4 jazzman1

jazzman1

    Advanced Member

  • Gurus
  • 2,249 posts
  • LocationMississauga, Canada

Posted 06 May 2013 - 04:37 PM

What's happening when you're trying to reach - site.com/test?

 

It redirects you to other page or it just shows you an empty content?

 

And also, is it a dedicated or a shared hosting server?



#5 trq

trq

    Advanced Member

  • Administrators
  • 30,723 posts
  • LocationSydney, Australia.

Posted 06 May 2013 - 09:24 PM

We can't really help without seeing the relevant config.


http://thorpesystems.com | http://proemframework.org | http://github.com/trq

SmtpCatcher - A very simple mock sendmail useful for testing PHP mail scripts.
OPM - My Linux package manager.


#6 mostafatalebi

mostafatalebi

    Advanced Member

  • Members
  • PipPipPip
  • 197 posts

Posted 07 May 2013 - 04:58 AM

so what details shall I put here?

I set the subdomain to test.domain.com

then I set the folder (using cpanel) to be either test or public_html/test but none of them work. When i try to access the subdomain it just shows a default webpage from cgi folder implying that the page could  not be found.


Visual Effects Programming

Autodesk Maya, Autodesk Mudbox, Nvidia Mental Images Mental Ray, Adobe Photoshop, Adobe Illustrator, Adobe After Effects, CorelDraw

#7 jazzman1

jazzman1

    Advanced Member

  • Gurus
  • 2,249 posts
  • LocationMississauga, Canada

Posted 07 May 2013 - 06:16 AM

The new directory called "test" should be located into the public_html - that's your web root directory, not above the public_html. 

 

So, delete and re-create it again and just create a index.php with simple echo "test page" inside the index.

 

Open the browser and try to reach the index file - your_site.com/test



#8 mostafatalebi

mostafatalebi

    Advanced Member

  • Members
  • PipPipPip
  • 197 posts

Posted 07 May 2013 - 06:54 AM

I have done that but the same result is achieved again.


Visual Effects Programming

Autodesk Maya, Autodesk Mudbox, Nvidia Mental Images Mental Ray, Adobe Photoshop, Adobe Illustrator, Adobe After Effects, CorelDraw

#9 mostafatalebi

mostafatalebi

    Advanced Member

  • Members
  • PipPipPip
  • 197 posts

Posted 07 May 2013 - 06:56 AM

Ha! it works now. It seems something like cache or other similar issues existed. thanks everybody


Visual Effects Programming

Autodesk Maya, Autodesk Mudbox, Nvidia Mental Images Mental Ray, Adobe Photoshop, Adobe Illustrator, Adobe After Effects, CorelDraw




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

Cheap Linux VPS from $5
SSD Storage, 30 day Guarantee
1 TB of BW, 100% Network Uptime

AlphaBit.com