Web Hosting Forum | Lunarpages
News: July 14, 2008 - New Contest! - Submit Your WordPress Theme Designs, Win BIG!
June 30, 2008 - Submit Your Site for the July 08 Site of the Month Award!
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
July 26, 2008, 06:03:21 AM


Login with username, password and session length


Pages: [1]   Go Down
  Print  
Author Topic: Subdomain directories not accessable  (Read 282 times)
jerry33445
Pong! (the videogame) Master
*****
Offline Offline

Posts: 26


« on: January 10, 2008, 06:08:16 AM »

I set up a sub-domain, using CPanel, and have uploaded php pages.  The subdomain has one directory called "pics" into which I have placed the images used by the site pages.  When I access the subdomain www.SUB.my-domain-name.org the index.php loads correctly but none of the graphics display.  This suggests the subdomain can be found via DNS.  When I right-click on a missing image and look at the properties for the missing graphic  I see http://www.SUB.my-domain-name.org/pics/graphic.jpg.  This looks correct to me because a file called graphic.jpg resides in the directory called pics.

If I access using the URL  www.my-domain-name.org/SUB/ everything works fine. 

What can I do to make this work.  Another sub-domain on the site is working fine and the directories are accessable as expected.
Logged
Mitch
Lunarpages Traffic Cop
Senior Moderator
Berserker Poster
*****
Offline Offline

Posts: 6965



WWW
« Reply #1 on: January 10, 2008, 06:12:51 AM »

Could you provide us with your real domain name?  That might help us find a quicker solution to your problem.  One obvious fix might be to clear your browser history/cache.  Could be your not getting the freshest version of the page.  Also it could be that something in the subdomain rewrites could be thrown off.  You could drop in an e-mail to support@lunarpages.com for our support team to have a look at that. 
Logged

katrina1
Support Supervisor
Über Jedi
*****
Offline Offline

Posts: 1914



WWW
« Reply #2 on: January 10, 2008, 06:45:27 AM »

Add the subdomain in question to your Hotlink Protection in the public_html .htaccess file.
Logged

Hey, Rocky! Look. Nothing up my sleeve... presto a rabbit!

Lunarpages Web Hosting

Lunarpages Forums

Lunarpapages Affiliate Program
jerry33445
Pong! (the videogame) Master
*****
Offline Offline

Posts: 26


« Reply #3 on: January 10, 2008, 07:57:00 AM »

Thanks Katrina, the Hotlink change solved the missing image problem.  I forgot I had turned that on a while ago. 

I am still getting a related problem though where PHP includes don't seem to work.  This is the error I get.    Warning: main() [function.include]: Failed opening '' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/worlda3/public_html/ghs58/gname-get.php on line 74
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.3 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks


Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM